filters & limit & sort

How to use query params to get alla data.

filters

To use filters you need to add to all field the postfix.

Immagine that you have a metadata named "users":

  • uuid

  • name [string]

  • surname [string]

  • age [number]

  • year [select with values "first", "second", "third", "quarter", "fifth"]

string comparation

equal

/api/example?year=first

not equal

/api/example?year_ne=first

like or right like or left like or contains or not contains

/api/example?year_like=fir
/api/example?year_ilike=fir // for postgresql case insensitive ilke
/api/example?year_rlike=fi
/api/example?year_llike=st
/api/example?year_contains=rs
/api/example?year_ncontains=z

in

is not null or is not null or not empty or is empty

numeric comparation

less than or less than equal

grether than or less than equal

order by

start

limit

select fields �

Last updated