Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
12-31-2022 11:49 AM
I am having a heck of a time using subscription plugins when my type has a Point field. This problem occurs when using either Neo4jGraphQLSubscriptionsSingleInstancePlugin or Neo4jGraphQLSubscriptionsAMQPPlugin when generating your scheme. Here is the specific error:
Error: TypeError[LocationSubscriptionWhere.point_IN]: Provided incorrect InputType: "[Point]"
at TypeMapper.convertInputTypeDefinition (/Users/benjaminpurtzer/Documents/PetSocial/api/node_modules/graphql-compose/lib/TypeMapper.js:335:23)
at TypeMapper.convertInputFieldConfig (/Users/benjaminpurtzer/Documents/PetSocial/api/node_modules/graphql-compose/lib/TypeMapper.js:387:36)
at InputTypeComposer.setField (/Users/benjaminpurtzer/Documents/PetSocial/api/node_modules/graphql-compose/lib/InputTypeComposer.js:127:46)
at /Users/benjaminpurtzer/Documents/PetSocial/api/node_modules/graphql-compose/lib/InputTypeComposer.js:133:18
at Array.forEach (<anonymous>)
at InputTypeComposer.addFields (/Users/benjaminpurtzer/Documents/PetSocial/api/node_modules/graphql-compose/lib/InputTypeComposer.js:132:32)
at Function.createTemp (/Users/benjaminpurtzer/Documents/PetSocial/api/node_modules/graphql-compose/lib/InputTypeComposer.js:97:21)
at Function.create (/Users/benjaminpurtzer/Documents/PetSocial/api/node_modules/graphql-compose/lib/InputTypeComposer.js:59:26)
at SchemaComposer.createInputTC (/Users/benjaminpurtzer/Documents/PetSocial/api/node_modules/graphql-compose/lib/SchemaComposer.js:305:54)
at generateSubscriptionWhereType (/Users/benjaminpurtzer/Documents/PetSocial/api/node_modules/@neo4j/graphql/dist/schema/subscriptions/generate-subscription-where-type.js:33:27)
and here is the piece of the schema that is causing problems. If I remove the point field, it works fine, but when I add in that point field, I am getting the above error.
All the sessions of the conference are now available online