enisdenjo / graphql-yoga-nestjs

Nest GraphQL GraphQL Yoga driver

Home Page:https://the-guild.dev/graphql/yoga-server/docs/integrations/integration-with-nestjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Schema first approach with federation

timkuilman opened this issue · comments

The examples have a directory graphql-federation-code-first. I tried hooking up a schema first NestJS application using the Yoga driver but that doesn't seem to work. Does anyone have some lead on how to change a regular schema into a federated schema?

Error: Couldn't load service definitions for "<servicename>" at http://localhost:4003/graphql: Cannot query field "_service" on type "Query".

Looking forward to try out the yoga federation implementation!

Could you create a reproduction? Thanks!
Also make sure you use buildSubgraphSchema from @apollo/subgraph package in order to create a subgraph schema.

Thanks, that helped! It was something on my end.