question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Schema is not configured for subscriptions

See original GitHub issue

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…?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
makstrcommented, Jan 7, 2018

Thanks, this is graphql-tools related. Not sure merging subscriptions is possible at the moment

1reaction
makstrcommented, Jan 11, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Schema is not configured for subscriptions ... - GitHub
This happens when the schema has no subscription enabled, but you have subscription statements in your src/graphql folder. This could happen ...
Read more >
Schema is not configured for mutations - Stack Overflow
I got my error, It is a typo : Instead of write mutation inside Schema constructor, i wrote mutiation . const schema =...
Read more >
Subscriptions in Apollo Server - Apollo GraphQL Docs
Subscriptions are not supported by Apollo Server 4's startStandaloneServer function. To enable subscriptions, you must first swap to using the expressMiddleware ...
Read more >
leangen/graphql-spqr - Gitter
I want to implement graphql subscriptions, but I am getting Schema is not configured for subscriptions. Is this a graphql-spqr error.
Read more >
Error: Schema is not configured for subscriptions - Bountysource
Describe the bug. I am not able to get API.swift generated/updated when setting custom model operation names with 'null' subscriptions ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found