graphile / global-ids

[EXPERIMENTAL] Allows you to use Relay global object identifiers in more places.
MIT License
9 stars 1 forks source link

Not compatible with nested mutations plugin #11

Open RedShift1 opened 4 years ago

RedShift1 commented 4 years ago

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 commented 4 years ago

Hey; thanks for the report. I just pushed out dc5485b907cbc492fce1e91153581d2638d6cad5 in v0.1.3; please let me know if it fixed the issue :+1: