IQL stands for Inbenta Query Language. It allows you to perform complex requests that would otherwise be difficult or even impossible with simple parameters in the Benti API.
the use of the iql disallow the use of the other parameters to avoid conflict between them. For example "iql": "queue IS 2" could have conflict with the query string queue. Only the pagination parameters can be use at the same time than iql.
Operator | Negate | Description | Example |
---|---|---|---|
IS | IS NOT | Makes sure the field has a value equal to the one provided | director IS "Steven Spielberg" |
IS EMPTY | IS NOT EMPTY |
Makes sure the field has a value of either:
|
director is EMPTY |
Operator | Negate | Description | Example |
---|---|---|---|
> | - | Makes sure the field has a value that is greater than the given number | movie.score > 3 |
< | - |
Makes sure the field has a value that is less than the given number |
movie.score < 5 |
>= | - |
Makes sure the field has a value that is equal to or greater than the given number |
movie.score >= 3 |
<= | - |
Makes sure the field has a value that is equal to or less than the given number |
movie.score <= 5 |
Operator | Negate | Description | Example |
---|---|---|---|
AND | - | makes sure that two conditions are met | director IS "Steven Spielberg" AND movie is "Jurassic Park" |
OR | - |
Makes sure at least one of the two conditions is met |
director IS "Steven Spielberg" OR director is "Martin Scorsese" |
Operator | Negate | Description | Example |
---|---|---|---|
(, ) | - | Evaluates the content of the parentheses individually | director is "Martin Scorsese" OR (director IS "Steven Spielberg" AND movie is "Jurassic Park") |
See the example below to view these operands in action.
IQL can be used in: