pg_graphql icon indicating copy to clipboard operation
pg_graphql copied to clipboard

Postgres Enum Types display as "String" in Introspection

Open olirice opened this issue 3 years ago • 0 comments

Test case: https://github.com/supabase/pg_graphql/blob/master/test/sql/resolve_graphiql_schema.sql

Output for the enum column

                         {                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  +
                             "args": [                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                             ],                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             +
                             "name": "status",                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                             "type": {                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                 "kind": "NON_NULL",                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        +
                                 "name": null,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              +
                                 "ofType": {                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                +
                                     "kind": "SCALAR",                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                     "name": "String",                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                                     "ofType": null                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         +
                                 }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          +
                             },                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             +
                             "description": null,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           +
                             "isDeprecated": false,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         +
                             "deprecationReason": null                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      +
                         },  

olirice avatar Aug 16 '22 13:08 olirice