Our GraphQL and REST endpoints sometimes offer you the possibility to filter, here is how this variable works:
{
"filter": {}
}
{
"filter": { "att1": "value1" }
}
{
"filter": { "att1.att2": "value2" }
}
{
"filter": { "att1": { "att2": "value2" } }
}
This object will be returned by both the "Filter on nested field" and the "Filter on object":
{
"att1": {
"att2": "value2",
}
}
This object will be returned by the "Filter on nested field" but not by the "Filter on object":
{
"att1": {
"att2": "value2",
"att3": "value3"
}
}
{
"filter": { "att1": [ "value1", "value2" ] }
}
Additionally some endpoints offer you the possibility to use all mongo filtering options. This is specified in the endpoint documentation.
For example, to match all values that are not equal to a specified value, you can do:
{
"filter": { "att1": { "$ne": "value1" } }
}