I am trying to learn Apollo Federation, so I started by looking at their sample (https://github.com/apollographql/federation-demo). This sample repository works great, and I can add a new service as a subgraph in Node.js.
I want to add a new service as a subgraph in .NET Core as well to extend the User
type defined in the sample project. I did so by created a new service using graphql-dotnet.
My schema is defined as the following:
extend type User @key(fields: "id") {
id: ID! @external
phone: String
}
The GraphQL Playground seems to work properly, but when I try to include the service in my gateway, I get the following error: UnhandledPromiseRejectionWarning: Error: Couldn't load service definitions for "user-service" at http://localhost:5000/graphql: Syntax Error: Expected Name, found "}".