Skip to content

Error: The GraphQL schema is not provided #306

Answered by enisdenjo
isuhendro asked this question in Q&A
Discussion options

You must be logged in to vote

Error is self-explanatory, you're not supplying the schema.

- useServer({ mySchema }, server);
+ useServer({ schema: mySchema }, server);
-  .ws("/subscriptions", makeBehavior({ mySchema }))
+  .ws("/subscriptions", makeBehavior({ schema: mySchema }))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@isuhendro
Comment options

Answer selected by isuhendro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #305 on February 12, 2022 11:22.