Skip to content

Wrong introspection schema response #633

@alexandrim0

Description

@alexandrim0

After upgrade to 1.6.0 codegen stop works and graphiql console also with error "Expected UUID! to be a GraphQL nullable type."
It generates field with nested "kind": "NON_NULL" like this:

            {
              "args": [
                {
                  "name": "id",
                  "type": {
                    "kind": "NON_NULL",
                    "name": null,
                    "ofType": {
                      "kind": "NON_NULL",
                      "name": null,
                      "ofType": {
                        "kind": "SCALAR",
                        "name": "UUID",
                        "ofType": null
                      }
                    }
                  },
                  "description": "The record's `id` value",
                  "defaultValue": null
                }
              ],
              "name": "accountByPk",
              "type": {
                "kind": "OBJECT",
                "name": "Account",
                "ofType": null
              },
              "description": "Retrieve a record of type `Account` by its primary key",
              "isDeprecated": false,
              "deprecationReason": null
            },
  • PostgreSQL: 18
  • pg_graphql commit ref: release 1.6.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions