Skip to main content

Query language

Query language is a syntax to query the data in data binding.

Examples​

Articles with more than 100 views​

<MultiSelectField 
field="articles"
label="Popular articles"
options="Article[views < 99].title"
/>

Published articles​

<SelectField
field="article"
label="Featured article"
options="Article[status=published].title"
/>

Unique article by id​

<EditPage
entity="Article(id = $id)"
pageName="blogEdit"
/>

Symbols​

SymbolsDescription

=

Equals to.

!=

Not equals to.

>

Greater than.

<

Less than.

>=

Greater than or equals.

<=

Less than or equals.

asc

Sort by given field from largest to smallest.

desc

Sort by given field from smallest to largest.

Types​

Qualified entity list​

Author
Author[age < 18]
Article[status = 'published']
Article[status = 'published' && author.age >= 18]
Author[age < 123].son.sisters(name = 'Jane')

Qualified Field List​

Author[age < 123].son.sister.name

Qualified single entity​

Author(id = 123).son.sister

Relative single field​

authors(id = 123).person.name

Relative single entity​

localesByLocale(locale.slug = en)

Relative entity list​

genres(slug = 'sciFi').authors[age < 123]

Unique where​

(author.mother.id = 123)

Filter​

[author.son.age < 123]

Order by​

items.content.name asc
items.content.name desc