vesper
vesper copied to clipboard
Batch resolve method should be invoked N times for N aliases with different arguments.
vesper: 0.1.9
Consider the following query
{
queryA {
entitiesA {
aRelations: relations(filter: A)
bRelations: relations(filter: B)
}
}
}
In the resolver for EntityA
, we have a @Resolve method async relations(entities: EntityA[])
.
Current behavior
- Resolver method is only being invoked once with
{ filter: A }
- the result for
bRelations
are the same as result foraRelations
Expected behavior
- Resolver method should be invoked twice with both
{ filter: A }
and{ filter: B }
- the result for
bRelations
should be corresponding the{ filter: B }