Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with nested mutations plugin #11

Open
RedShift1 opened this issue Jan 11, 2020 · 1 comment
Open

Not compatible with nested mutations plugin #11

RedShift1 opened this issue Jan 11, 2020 · 1 comment

Comments

@RedShift1
Copy link

When trying to use this plugin in conjunction with postgraphile-plugin-nested-mutations, warnings are emitted on startup and all mutations are missing from the GraphQL schema:

Recoverable error occurred:
  graphile-build:warn TypeError: Cannot read property 'kind' of undefined
  graphile-build:warn     at MakeForeignKeyInputFieldsNullable (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\@graphile\global-ids\dist\index.js:21:34)
  graphile-build:warn     at SchemaBuilder.applyHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\SchemaBuilder.js:252:20)
  graphile-build:warn     at Object.fieldWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:554:35)
  graphile-build:warn     at fields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:573:55)
  graphile-build:warn     at resolveThunk (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:438:40)
  graphile-build:warn     at defineInputFieldMap (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1056:18)
  graphile-build:warn     at GraphQLInputObjectType.getFields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1017:27)
  graphile-build:warn     at Object.newWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:631:36)
  graphile-build:warn     at C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTablesPlugin.js:182:9
  graphile-build:warn     at Object.getGqlTypeByTypeIdAndModifier (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTypesPlugin.js:743:26) +0ms
Recoverable error occurred:
  graphile-build:warn TypeError: Cannot read property 'kind' of undefined
  graphile-build:warn     at MakeForeignKeyInputFieldsNullable (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\@graphile\global-ids\dist\index.js:21:34)
  graphile-build:warn     at SchemaBuilder.applyHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\SchemaBuilder.js:252:20)
  graphile-build:warn     at Object.fieldWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:554:35)
  graphile-build:warn     at fields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:573:55)
  graphile-build:warn     at resolveThunk (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:438:40)
  graphile-build:warn     at defineInputFieldMap (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1056:18)
  graphile-build:warn     at GraphQLInputObjectType.getFields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1017:27)
  graphile-build:warn     at Object.newWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:631:36)
  graphile-build:warn     at C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTablesPlugin.js:182:9
  graphile-build:warn     at Object.getGqlTypeByTypeIdAndModifier (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTypesPlugin.js:743:26) +29ms
Recoverable error occurred:
  graphile-build:warn TypeError: Cannot read property 'kind' of undefined
  graphile-build:warn     at MakeForeignKeyInputFieldsNullable (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\@graphile\global-ids\dist\index.js:21:34)
  graphile-build:warn     at SchemaBuilder.applyHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\SchemaBuilder.js:252:20)
  graphile-build:warn     at Object.fieldWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:554:35)
  graphile-build:warn     at fields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:573:55)
  graphile-build:warn     at resolveThunk (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:438:40)
  graphile-build:warn     at defineInputFieldMap (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1056:18)
  graphile-build:warn     at GraphQLInputObjectType.getFields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1017:27)
  graphile-build:warn     at Object.newWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:631:36)
  graphile-build:warn     at C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTablesPlugin.js:182:9
  graphile-build:warn     at Object.getGqlTypeByTypeIdAndModifier (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTypesPlugin.js:743:26) +16ms
Recoverable error occurred:
  graphile-build:warn TypeError: Cannot read property 'kind' of undefined
  graphile-build:warn     at MakeForeignKeyInputFieldsNullable (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\@graphile\global-ids\dist\index.js:21:34)
  graphile-build:warn     at SchemaBuilder.applyHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\SchemaBuilder.js:252:20)
  graphile-build:warn     at Object.fieldWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:554:35)
  graphile-build:warn     at fields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:573:55)
  graphile-build:warn     at resolveThunk (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:438:40)
  graphile-build:warn     at defineInputFieldMap (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1056:18)
  graphile-build:warn     at GraphQLInputObjectType.getFields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1017:27)
  graphile-build:warn     at Object.newWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:631:36)
  graphile-build:warn     at C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTablesPlugin.js:182:9
  graphile-build:warn     at Object.getGqlTypeByTypeIdAndModifier (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTypesPlugin.js:743:26) +15ms
Recoverable error occurred:
  graphile-build:warn TypeError: Cannot read property 'kind' of undefined
  graphile-build:warn     at MakeForeignKeyInputFieldsNullable (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\@graphile\global-ids\dist\index.js:21:34)
  graphile-build:warn     at SchemaBuilder.applyHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\SchemaBuilder.js:252:20)
  graphile-build:warn     at Object.fieldWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:554:35)
  graphile-build:warn     at fields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:573:55)
  graphile-build:warn     at resolveThunk (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:438:40)
  graphile-build:warn     at defineInputFieldMap (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1056:18)
  graphile-build:warn     at GraphQLInputObjectType.getFields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1017:27)
  graphile-build:warn     at Object.newWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:631:36)
  graphile-build:warn     at C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTablesPlugin.js:182:9
  graphile-build:warn     at Object.getGqlTypeByTypeIdAndModifier (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTypesPlugin.js:743:26) +17ms
Recoverable error occurred:
  graphile-build:warn TypeError: Cannot read property 'kind' of undefined
  graphile-build:warn     at MakeForeignKeyInputFieldsNullable (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\@graphile\global-ids\dist\index.js:21:34)
  graphile-build:warn     at SchemaBuilder.applyHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\SchemaBuilder.js:252:20)
  graphile-build:warn     at Object.fieldWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:554:35)
  graphile-build:warn     at fields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:573:55)
  graphile-build:warn     at resolveThunk (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:438:40)
  graphile-build:warn     at defineInputFieldMap (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1056:18)
  graphile-build:warn     at GraphQLInputObjectType.getFields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1017:27)
  graphile-build:warn     at Object.newWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:631:36)
  graphile-build:warn     at C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTablesPlugin.js:182:9
  graphile-build:warn     at Object.getGqlTypeByTypeIdAndModifier (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTypesPlugin.js:743:26) +15ms
Recoverable error occurred:
  graphile-build:warn TypeError: Cannot read property 'kind' of undefined
  graphile-build:warn     at MakeForeignKeyInputFieldsNullable (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\@graphile\global-ids\dist\index.js:21:34)
  graphile-build:warn     at SchemaBuilder.applyHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\SchemaBuilder.js:252:20)
  graphile-build:warn     at Object.fieldWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:554:35)
  graphile-build:warn     at fields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:573:55)
  graphile-build:warn     at resolveThunk (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:438:40)
  graphile-build:warn     at defineInputFieldMap (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1056:18)
  graphile-build:warn     at GraphQLInputObjectType.getFields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1017:27)
  graphile-build:warn     at Object.newWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:631:36)
  graphile-build:warn     at C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTablesPlugin.js:182:9
  graphile-build:warn     at Object.getGqlTypeByTypeIdAndModifier (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTypesPlugin.js:743:26) +27ms
Recoverable error occurred:
  graphile-build:warn TypeError: Cannot read property 'kind' of undefined
  graphile-build:warn     at MakeForeignKeyInputFieldsNullable (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\@graphile\global-ids\dist\index.js:21:34)
  graphile-build:warn     at SchemaBuilder.applyHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\SchemaBuilder.js:252:20)
  graphile-build:warn     at Object.fieldWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:554:35)
  graphile-build:warn     at fields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:573:55)
  graphile-build:warn     at resolveThunk (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:438:40)
  graphile-build:warn     at defineInputFieldMap (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1056:18)
  graphile-build:warn     at GraphQLInputObjectType.getFields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1017:27)
  graphile-build:warn     at Object.newWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:631:36)
  graphile-build:warn     at C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTablesPlugin.js:182:9
  graphile-build:warn     at Object.getGqlTypeByTypeIdAndModifier (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTypesPlugin.js:743:26) +25ms
Recoverable error occurred:
  graphile-build:warn TypeError: Cannot read property 'kind' of undefined
  graphile-build:warn     at MakeForeignKeyInputFieldsNullable (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\@graphile\global-ids\dist\index.js:21:34)
  graphile-build:warn     at SchemaBuilder.applyHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\SchemaBuilder.js:252:20)
  graphile-build:warn     at Object.fieldWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:554:35)
  graphile-build:warn     at fields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:573:55)
  graphile-build:warn     at resolveThunk (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:438:40)
  graphile-build:warn     at defineInputFieldMap (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1056:18)
  graphile-build:warn     at GraphQLInputObjectType.getFields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1017:27)
  graphile-build:warn     at Object.newWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:631:36)
  graphile-build:warn     at C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTablesPlugin.js:182:9
  graphile-build:warn     at Object.getGqlTypeByTypeIdAndModifier (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTypesPlugin.js:743:26) +18ms
Recoverable error occurred:
  graphile-build:warn TypeError: Cannot read property 'kind' of undefined
  graphile-build:warn     at MakeForeignKeyInputFieldsNullable (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\@graphile\global-ids\dist\index.js:21:34)
  graphile-build:warn     at SchemaBuilder.applyHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\SchemaBuilder.js:252:20)
  graphile-build:warn     at Object.fieldWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:554:35)
  graphile-build:warn     at fields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:573:55)
  graphile-build:warn     at resolveThunk (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:438:40)
  graphile-build:warn     at defineInputFieldMap (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1056:18)
  graphile-build:warn     at GraphQLInputObjectType.getFields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1017:27)
  graphile-build:warn     at Object.newWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:631:36)
  graphile-build:warn     at C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTablesPlugin.js:182:9
  graphile-build:warn     at Object.getGqlTypeByTypeIdAndModifier (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTypesPlugin.js:743:26) +9ms
Recoverable error occurred:
  graphile-build:warn TypeError: Cannot read property 'kind' of undefined
  graphile-build:warn     at MakeForeignKeyInputFieldsNullable (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\@graphile\global-ids\dist\index.js:21:34)
  graphile-build:warn     at SchemaBuilder.applyHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\SchemaBuilder.js:252:20)
  graphile-build:warn     at Object.fieldWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:554:35)
  graphile-build:warn     at fields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:573:55)
  graphile-build:warn     at resolveThunk (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:438:40)
  graphile-build:warn     at defineInputFieldMap (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1056:18)
  graphile-build:warn     at GraphQLInputObjectType.getFields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1017:27)
  graphile-build:warn     at Object.newWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:631:36)
  graphile-build:warn     at C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTablesPlugin.js:182:9
  graphile-build:warn     at Object.getGqlTypeByTypeIdAndModifier (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTypesPlugin.js:743:26) +19ms
Recoverable error occurred:
  graphile-build:warn TypeError: Cannot read property 'kind' of undefined
  graphile-build:warn     at MakeForeignKeyInputFieldsNullable (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\@graphile\global-ids\dist\index.js:21:34)
  graphile-build:warn     at SchemaBuilder.applyHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\SchemaBuilder.js:252:20)
  graphile-build:warn     at Object.fieldWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:554:35)
  graphile-build:warn     at fields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:573:55)
  graphile-build:warn     at resolveThunk (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:438:40)
  graphile-build:warn     at defineInputFieldMap (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1056:18)
  graphile-build:warn     at GraphQLInputObjectType.getFields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1017:27)
  graphile-build:warn     at Object.newWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:631:36)
  graphile-build:warn     at C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTablesPlugin.js:182:9
  graphile-build:warn     at Object.getGqlTypeByTypeIdAndModifier (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTypesPlugin.js:743:26) +16ms
Recoverable error occurred:
  graphile-build:warn TypeError: Cannot read property 'kind' of undefined
  graphile-build:warn     at MakeForeignKeyInputFieldsNullable (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\@graphile\global-ids\dist\index.js:21:34)
  graphile-build:warn     at SchemaBuilder.applyHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\SchemaBuilder.js:252:20)
  graphile-build:warn     at Object.fieldWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:554:35)
  graphile-build:warn     at fields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:573:55)
  graphile-build:warn     at resolveThunk (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:438:40)
  graphile-build:warn     at defineInputFieldMap (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1056:18)
  graphile-build:warn     at GraphQLInputObjectType.getFields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:1017:27)
  graphile-build:warn     at Object.newWithHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:631:36)
  graphile-build:warn     at C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTablesPlugin.js:182:9
  graphile-build:warn     at getGqlTypeByTypeIdAndModifier (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build-pg\node8plus\plugins\PgTypesPlugin.js:743:26) +18ms
Recoverable error occurred:
  graphile-build:warn Error: Expected undefined to be a GraphQL nullable type.
  graphile-build:warn     at assertNullableType (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:385:11)
  graphile-build:warn     at new GraphQLNonNull (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphql\type\definition.js:345:19)
  graphile-build:warn     at C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\lib\PgUpsertPlugin.js:146:23
  graphile-build:warn     at Array.reduce (<anonymous>)
  graphile-build:warn     at upsertFieldsForTable (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\lib\PgUpsertPlugin.js:127:32)
  graphile-build:warn     at C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\lib\PgUpsertPlugin.js:316:13
  graphile-build:warn     at Array.reduce (<anonymous>)
  graphile-build:warn     at PgUpsertPlugin/GraphQLObjectType:fields/unnamed (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\lib\PgUpsertPlugin.js:312:40)
  graphile-build:warn     at SchemaBuilder.applyHooks (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\SchemaBuilder.js:252:20)
  graphile-build:warn     at fields (C:\Users\glenn.matthys\Documents\Projects\bigfox-gql-api\node_modules\graphile-build\node8plus\makeNewBuild.js:505:40) +121ms

Postgraphile configuration:

import pgGlobalIds from '@graphile/global-ids';
import pgNestedMutations from 'postgraphile-plugin-nested-mutations';

postgraphile(
    process.env[ENV_DATABASE_URL],
    ['public'],
    {
        appendPlugins:
        [
            pgNestedMutations,
            pgGlobalIds
        ]
    }
);
@benjie
Copy link
Member

benjie commented Jan 13, 2020

Hey; thanks for the report. I just pushed out dc5485b in v0.1.3; please let me know if it fixed the issue 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants