Closed igortas closed 4 years ago
What's the code for the module etc behind http://localhost:4000/graphql
?
What's the code for the module etc behind
http://localhost:4000/graphql
?
I've updated the ticket with the users module code.
PR for the code-first & federation is in progress. Let's track this here https://github.com/nestjs/docs.nestjs.com/pull/1213
I'm submitting a...
Current behavior
I'm trying to create code-first federation approach. I'm following this example: https://github.com/nestjs/graphql/tree/master/tests/code-first-federation The current behaviour is that apollo-gateway throws error: This data graph is missing a valid configuration. Unknown type: "User".
Expected behavior
I don't expect gateway to throw error.
Minimal reproduction of the problem with instructions
User entity:
Graphql config service:
Users module:
Gateway module:
What is the motivation / use case for changing the behavior?
I like to create apollo federation with multiple microservices, and every microservice has it own feature implemented with own db, and i'm trying to follow how schema-first approach is working, but with code-first.
Environment
VS Code version: 1.44.2