federation-demo
federation-demo copied to clipboard
is it possible to add a non Apollo graphql service?
If i try to extend it with a Flask-Graphql endpoint, i get the following error:
const gateway = new ApolloGateway({
serviceList: [
{ name: "accounts", url: "http://localhost:4001/graphql" },
{ name: "reviews", url: "http://localhost:4002/graphql" },
{ name: "products", url: "http://localhost:4003/graphql" },
{ name: "inventory", url: "http://localhost:4004/graphql" },
{ name: "mydata", url: "http://myserver:8090/graphql" }
]
});
:(
Encountered error when loading unobtanium at http://myserver:8090/graphql: 400: BAD REQUEST
probably because it returns different kind of schema..
i would be very interested in ways to port other endpoints!
I can't get any third party services working either - they are implementing services but i keep getting the error Error checking for changes to service definitions: Couldn't load service definitions for "cms" at http://localhost:1337/graphql: 400: Bad Request
Can't find anything in the docs to help resolve (pun intended)