I have a query in React
const allQueries = await API.graphql(graphqlOperation(queries.listProcess));
Then in my queries.js I have it defined as so.
```export const listProcess = `query ListProcess(
$filter: ModelProcessFilterInput
$limit: Int
$nextToken: String
) {
listProcess(filter: $filter, limit: $limit, nextToken: $nextToken) {
items {
id
routine {
id
key
}
event {
eventId
detailType
source
account
time
region
resources
detail
}
tasks {
key
title
status
processId
context
eventId
message
export
error
output
}
workers {
id
type
}
status
context
}
nextToken
}
}
`;```
When I go to query it I get this error in JS
locations: null
message: "Can't resolve value (/listProcesss/items[1]/tasks) : type mismatch error, expected type LIST"
path: Array(4)
0: "listProcesss"
1: "items" 2: 1 3: "tasks" length: 4