Skip to content
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

Create resolver for field which lives in another graph #14

Open
rnoack1 opened this issue Jul 16, 2021 · 0 comments
Open

Create resolver for field which lives in another graph #14

rnoack1 opened this issue Jul 16, 2021 · 0 comments

Comments

@rnoack1
Copy link

rnoack1 commented Jul 16, 2021

I'm not sure this is an issue with code, or documentation or my understanding. Hope this is a valid place to ask and someone could give some input.

I have a federated graph, where base type is defined in one subgraph, and that type is extended in another graph.

I can not figure out how to represent this, using the "resolveReference" provided by this package:

For example:
https://www.apollographql.com/docs/federation/entities/#resolving

In the example above, say that one graph provides "Product" , and now I want to add field "Reviews" on to product. How would I represent this using the transformSchemaFederation function? Since it provides only "resolveReference" , but does it provide the ability to provide resolvers for specific fields?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant