You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following two examples, the first works as expected with different arguments missing, the second does not.
@GraphQLQuery(name = "allEntities")
public List<Entity> getEntities(
@GraphQLArgument(name = "type", description = "The type of the entity") String type,
@GraphQLArgument(name = "value", description = "A value of the entity") String value,
@GraphQLArgument(name = "limit", defaultValue = "0") int limit) {
return null; //todo
}
@GraphQLQuery(name = "entities")
public List<Entity> getByDocumentAndType(@GraphQLContext Document document,
@GraphQLArgument(name = "type", description = "The type of the entity") String type,
@GraphQLArgument(name = "value", description = "A value of the entity") String value,
@GraphQLArgument(name = "limit", defaultValue = "0") int limit) {
return null; //todo
For example, the following query works fine:
{
allEntities(type: "Person"){
value
}
}
but this one gives the exception below :
{
documents {
entities(type: "Person"){
value
}
}
}
Caused by: graphql.GraphQLException: Resolver for operation entities accepting arguments: [limit, type] not implemented
at io.leangen.graphql.execution.OperationExecutor.execute(OperationExecutor.java:56) ~[spqr-0.9.3.jar:na]
... 63 common frames omitted
The text was updated successfully, but these errors were encountered:
While it sounds unrelated, this is actually yet another manifestation of your other issue (with queries having to match on context arguments). I've been working on the proper fix for a while now and will push it soon (when I'm back from vacation).
In the following two examples, the first works as expected with different arguments missing, the second does not.
For example, the following query works fine:
but this one gives the exception below :
The text was updated successfully, but these errors were encountered: