I am trying to mash up a simple subscriptions server stitching several different schemas
For reference:
https://www.apollographql.com/docs/graphql-tools/generate-schema.html#modularizing
https://github.com/apollographql/graphql-tools/blob/master/docs/source/schema-stitching.md#adding-resolvers-between-schemas
It all works fine with regular queries and mutations and I get expected results. However subscriptions do not seem comply and after stitching together I get "Schema is not configured for subscriptions"
{
"data": null,
"error": [
{
"message": "Schema is not configured for subscriptions.",
"locations": [
{
"line": 1,
"column": 1
}
]
}
]
}
Not sure if this is graphql-yoga or graphql-tools related...?
Can you try to reproduce this problem simply using graphql-express or apollo-server? If it's still a problem, then it's most likely a problem with graphql-tools.
Thanks, this is graphql-tools related. Not sure merging subscriptions is possible at the moment
Would be great if you could paste the link to the graphql-tools issue here so other people can follow along.
Still working on it, will post you guys...
Today I played a little with different ways of schema merging, I looked at the merge-graphql-schemas packaged but I could not get it to work well with graphql-yoga. So I went back to graphql-tools again, I upgraded the package and it looks like the latest version is working fine
So after all you did get it to work with graphql-yoga?
Most helpful comment
Thanks, this is graphql-tools related. Not sure merging subscriptions is possible at the moment