Hi,
I am trying to understand how to provide parameters to the allCards query. It seems there is no place where simple example queries are shown, so its becoming difficult to understand how to construct API queries.
Right now I am experimenting with basic queries and trying them with GraphiQL. With the below query I try to filter cards and retrieve all cards where a certain field has a value equal to a certain value, Eduardo in this example. The below query returns errors, it seems it is expecting a string. The error does not resolve if I enclose the field name and/or value between “”.
The query below does retrieve values if the 4th line is completely removed (i.e. the line with the filter).
How are this filters constructed? What is the basic grammar? What am I missing? Thanks!
errors": d{
"message": "Argument 'field' on InputObject 'AdvancedSearch' has an invalid value (field_24_string). Expected type 'String'.",
The allCards query
{
# searching cards based on limited parameters: you cant limit by phase!
allCards (pipeId: 11111,
filter: {field: field_24_string value:Eduardo}
)
{
edges {
node { id
url
createdAt
updated_at
current_phase {
id
name
}
title
fields{
indexName
name
value
}
}
}
pageInfo{ startCursor endCursor
hasNextPage hasPreviousPage }
}}