Skip to content

Hide queries in schema #1949

Answered by t1
robp94 asked this question in Q&A
Oct 27, 2023 · 3 comments · 8 replies
Discussion options

You must be logged in to vote

But this resolveFederationPrice method does resolve a Product! It's just not the full Product but only the "view" that the Price service has about the product: a product with an id and a price. If you give it the same name that the Product (or any other) service uses, e.g. product or productById, you'll have only a single query in the schema!

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

t1
Oct 30, 2023
Collaborator

You must be logged in to vote
8 replies
@robp94
Comment options

@t1
Comment options

t1 Oct 30, 2023
Collaborator

@robp94
Comment options

@t1
Comment options

t1 Oct 30, 2023
Collaborator

Answer selected by robp94
@robp94
Comment options

@robp94
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants