How can a field be resolved from a different subgraph?

Have more questions? Submit a request

Resolving types across multiple subgraphs can refer to a few different scenarios, depending on what you need to accomplish.

If different subgraphs will contribute different fields to the same type, you create an entity. If a subgraph defines an entity, it can do any of the following:

If different subgraphs will resolve the same fields of a type, you use the @shareable directive to enable this behavior.

If an object field will move from one subgraph to another, you use the @override directive to indicate that the field is now resolved by this subgraph instead of another subgraph where it's also defined.

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.