Provide arguments for @requires fields #1868
Unanswered
KjellBerlin
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The concept of local context is within your DGS. Are you using federation? Could you provide more details on what fields are resolved by which services? It sounds like getContact is from service A and address is resolved by serviceB? You will need also need an @key field if you are using federation. The key is what will be passed as information to service B to look up the corresponding address - which sounds like should be the filters? If not using federation, this set up is not going to work across multiple services. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all,
I have the following situation.
ContactService
AddressService
The problem is that here address behind @requires can not be resolved because it does not receive its filters. Is there any possibility to either
1.) Pass filters from query level to the address resolver, if this one is located in a different microservice? Here the usage of
localContext
has been suggested. But as far as I understand it, thelocalContext
is not being passed across service boundaries. So this would not work here2.) Use exactly the same filters from the line above in the @requires field address like this?
Beta Was this translation helpful? Give feedback.
All reactions