Replies: 2 comments 19 replies
-
Such complex cases almost always requires ejecting from the generator and manually editing generated source files. |
Beta Was this translation helpful? Give feedback.
-
So I was able to make partial progress. Hopefully the community can provide some help here ... There are 2 additional requirements to make Federation work. Adding a new type, extending it and applying the @external attribute. (User is not part of the Prisma model)
Attempted code.
Errors: Type '"User"' does not satisfy the constraint '"Post"'.ts(2344) |
Beta Was this translation helpful? Give feedback.
-
Since the generator is creating graphql schemas from Prisma, is there a best practice in terms of how to add references/keys/extends and then also adding dataloaders ?
Do you extend the schema and add the directives in extensions ?
Beta Was this translation helpful? Give feedback.
All reactions