Repository navigation
Hide queries in schema
#1949
|
Is there an option to hide certain queries and not publish them in the schema? For federation, we need many queries who should not be called directly. Would be nice if we could hide/exclude them from the schema. |
Answered by
t1
Oct 30, 2023
Replies: 3 comments 8 replies
|
No, if it's not in the schema, it also will not be executable (at lease not from graphql). |
0 replies
|
You can ignore certain fields on object, to not be exposed on the graphql side, see https://download.eclipse.org/microprofile/microprofile-graphql-1.0/microprofile-graphql.html#ignorable_fields |
0 replies
|
IIUC, it's only just two extra queries, isn't it? |
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
But this
resolveFederationPricemethod does resolve aProduct! It's just not the full Product but only the "view" that thePriceservice has about the product: a product with an id and a price. If you give it the same name that theProduct(or any other) service uses, e.g.productorproductById, you'll have only a single query in the schema!