Closed gel-hidden closed 1 year ago
Hi,
This is by (AppSync) design (not this plugin specifically)
The resolver attached to the Query.street
will receive the number
argument.
The name
argument, will be passed to the resolver attached to Street.people
Oh, sorry. I'm lacking quite a bit of knowledge in this area.
I have the same resolver, I think, for both Street
and People
given it is only one query. But I should configure it so it should be two revolvers for the same query? So one single query is calling multiple lambda resolvers?
I'd say you have two options:
personeName
at the root of your query (in street
) and keep one resolver to resolve everything.And by using another resolver it also means I have another query? Or could one query use multiple resolvers?
you can attach a resolver on Street.People
it will be executed and you will receive the result ctx.source
from the previous resolver.
I suggest you read the doc and guides and learn more about GraphQL in general first.
Thank you so much!
Lets say I have a query like this:
And would then send a query like:
I don't see to be able to fetch the
name
argument of people. The$ctx.arguments
just gives me:Is there no way to access both the
number
argument as well as thename
argument?