Hi there,
I am wanting to run a graphql query to return multiple types of tasks based on the TaskDefinitionId however it appears that the implementation does not seem to support filtering in this manner?
{
tasks(query: {taskDefinitionId: {in: ["Task_A", "Task_B"]}}) {
id
name
taskDefinitionId
variables {
id
name
value
}
}
}
Which returns the following error message:
“message”: “Validation error of type WrongType: argument ‘query.taskDefinitionId’ with value ‘ObjectValue{objectFields=[ObjectField{name=‘in’, value=ArrayValue{values=[StringValue{value=‘Task_A’}, StringValue{value=‘Task_B’}]}}]}’ is not a valid ‘String’ - Expected AST type ‘StringValue’ but was ‘ObjectValue’. @ ‘tasks’”
Is it not possible to perform this type of query filtering with the Tasklist API? I am a newbie to graphql so I am currently just following my nose. I can think of 1 option is to return everything and perform my filter in code, but doesn’t that defeat the purpose of graphql in a way?