federation-demo icon indicating copy to clipboard operation
federation-demo copied to clipboard

is it possible to add a non Apollo graphql service?

Open squarewave24 opened this issue 4 years ago • 1 comments

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!

squarewave24 avatar Sep 23 '19 15:09 squarewave24

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)

malgamves avatar Aug 01 '20 21:08 malgamves