-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of federated graphs #299
Comments
RFC: Should this be a part of the current |
Any good or official implementation of federation for nestjs? Perhaps it could be a config option so people can specify federated: true, default false. If they want to use federated graph. |
Haven't yet done any documentation, but essentially you'd be using Check out my PR #301 And here's an example of how you'd be using it |
I see that makes sense. Anyone from nest looking into this. This is a super important feature! |
Until a fix, you can use my library https:/juicycleff/nestjs-graphql-gateway. You keep using this library for everything else except the module initialization |
@juicycleff where's the credits? You pretty much just copy-pasted my work. |
@marcus-sa oh sorry about I added credits to you. I basically used it in my project and decided to make it a lib so others can easily use it until there is support for federation here. Besides I was working on it, saw your project, wasn't much difference, took the part I needed and used it internally and decided to share it so others can use until support here (You copy-pasted from nestjs/graphql), I even added support for typegraphql, while true I copied some piece of your work which you made public to copy for free, it was not COPY PASTE. However again my bad for not adding credits to you, besides it was just a temporary fix. and not too different from what I made before only my approach was almost replacing the nest graphql library |
Just merged (published as 6.6.0). Let's track the docs update here nestjs/docs.nestjs.com#802 |
I'm submitting a...
Current behavior
No support for federated graphs
Proposal
@apollo/federation
uses a custom property in resolvers for referencing, just like when resolving a property.Currently
@nestjs/graphql
have a@ResolveProperty()
decorator, and what I propose is a@ResolveReference()
decorator explicitly for when using@apollo/federation
Example of how they use
__resolveReference
:What is the motivation / use case for changing the behavior?
https://www.apollographql.com/docs/apollo-server/federation/introduction
Links
https://www.apollographql.com/docs/apollo-server/api/apollo-federation/
The text was updated successfully, but these errors were encountered: