Skip to content

Syntax Guide for FrontQL

Operators

  • Equal to: :
  • Not equal to: !:
  • Greater than: >
  • Less than: <
  • Greater than or equal to: >:
  • Less than or equal to: <:
  • And: ,
  • Or: |
  • Like: ~
  • Contains: ~*

Examples

  • id: 1
  • id: 1, name: John
  • id: 1 | id: 2
  • id: 1, age > 18
  • id: 1, age < 32
  • age >: 18, age <: 32
  • name ~ John
  • name ~ John*
  • name ~ *John
  • name ~ *John*

Syntax Rules for Collection Name

  • Use lowercase letters only.
  • If the collection name is one word, you can use it as is.
  • If the collection name is multiple words, you can use a underscore (_) to separate them.
  • Example: users, user_profiles, user_address etc.