// TODO
- Module:
- Version: *
- Node.js / npm versions: *
- Example/snippet of the model that is causing issue
In the fastify-mongo-server-ts template, subscriptions appear to not be working using the GraphiQL Playground:
{
"errors": [
{
"message": "Cannot return null for non-nullable field Subscription.newNote.",
"locations": [
{
"line": 31,
"column": 3
}
],
"path": [
"newNote"
]
}
],
"data": null
}
This may not be an issue with Graphback, but it also might be. As such let's have this issue to ensure this is resolved. The Fastify templates are turned off until then.
Once this is resolved please check that the templates work and enable them in the CLI:
// TODO
In the
fastify-mongo-server-tstemplate, subscriptions appear to not be working using the GraphiQL Playground:{ "errors": [ { "message": "Cannot return null for non-nullable field Subscription.newNote.", "locations": [ { "line": 31, "column": 3 } ], "path": [ "newNote" ] } ], "data": null }This may not be an issue with Graphback, but it also might be. As such let's have this issue to ensure this is resolved. The Fastify templates are turned off until then.
Once this is resolved please check that the templates work and enable them in the CLI:
graphback/packages/create-graphback/src/init/starterTemplates.ts
Line 80 in 57de515
graphback/packages/create-graphback/src/init/starterTemplates.ts
Line 51 in 57de515