You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried a custom Apollo Server and the default graphql-mesh dev server and my Apollo Gateway fails when connecting to the server. If i run the backend service using postgraphile server, federation works fine.
The error from the gateway is
(node:50191) UnhandledPromiseRejectionWarning: Error: A valid schema couldn't be composed. The following composition errors were found:
Unknown type: "_Entity".
[api] Subscription -> `Subscription` is an extension type, but `Subscription` is not defined in any service
Unknown type "_Entity".
at ApolloGateway.createSchemaFromServiceList (.../node_modules/@apollo/gateway/dist/index.js:490:19)
at ApolloGateway.updateByComposition (.../node_modules/@apollo/gateway/dist/index.js:345:48)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async ApolloGateway.updateSchema (.../node_modules/@apollo/gateway/dist/index.js:323:13)
at async ApolloGateway.loadDynamic (.../node_modules/@apollo/gateway/dist/index.js:302:13)
at async ApolloGateway.load (.../node_modules/@apollo/gateway/dist/index.js:273:15)
at async SchemaManager.start (.../node_modules/apollo-server-core/dist/utils/schemaManager.js:42:28)
at async ApolloServer._start (.../node_modules/apollo-server-core/dist/ApolloServer.js:146:30)
at async ApolloServer.listen (.../node_modules/apollo-server/dist/index.js:67:9)
We no longer support custom servers, and a lot of things changed and improved in the latest packages. I couldn't test it because you didn't provide a reproduction but I think it should be fixed in the latest versions.
Let us know if the issue still persists then we can reopen the issue.
Describe the bug
I've tried a custom Apollo Server and the default graphql-mesh dev server and my Apollo Gateway fails when connecting to the server. If i run the backend service using postgraphile server, federation works fine.
The error from the gateway is
To Reproduce
Steps to reproduce the behavior:
.meshrc.yaml
(and a postgres connection)Run
mesh dev
The above server works great by itself. But trying to run it behind an apollo gateway reports the above error
postgraphile
directly using the same pluginsExpected behavior
The gateway should work.
Environment:
Additional context
The text was updated successfully, but these errors were encountered: