Query Parameters
API calls can contain different query parameters: skip, filter, orderby, limit, fields.
Check the query parameters of a route to see which query parameter can be used.
Skip
Examples
2
Filter
AND
Compute the logical βandβ of one or more values.
and(VARIABLE.gt(VALUE),VARIABLE.lt(VALUE))
OR
Compute the logical βorβ of one or more values.
or(VARIABLE.e(VALUE),VARIABLE.e(VALUE))
E
Test if variable and a value are equal.
VARIABLE.e(VALUE)
NE
Test if variable and a value are not equal.
VARIABLE.ne(VALUE)
GT
Compare values, testing if the left-hand value is greater than the right-hand.
VARIABLE.gt(VALUE)
GTE
Compare values, testing if the left-hand value is greater than or equal to the right-hand.
VARIABLE.gte(VALUE)
LT
Compare values, testing if the left-hand value is less than the right-hand.
VARIABLE.lt(VALUE)
LTE
Compare values, testing if the left-hand value is less than or equal to the right-hand.
VARIABLE.lte(VALUE)
LIKE
Act as the LIKE in SQL
VARIABLE.like(VALUE%VALUE)
NLIKE
Not like
VARIABLE.nlike(VALUE)
Examples
or(name.e(oocar),name.like(smarto))
and(mileage.gt(534005),mileage.lte(734005))
lang.ne(fr)
avg_score_trip.gt(67)
organisations.name.nlike(Ph%ny)
Orderby
Examples
name
-name
Limit
Examples
15
Fields
$all
: Show default fields{variable}
.fields($all)
: Show all fields of a relationship
Examples
users.fields($all)
$all,users,vehicle_count
name,type,vehicle_count,users.fields(uuid,name,vehicles.fields($all,vehicle_data))
Last updated
Was this helpful?