Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • A api
  • Project information
    • Project information
    • Activity
    • Members
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Wiki
    • Wiki
  • Activity
Collapse sidebar
  • ironapi
  • api
  • Wiki
  • Api
  • Queries

Queries · Changes

Page history
attrs docu authored Jan 26, 2022 by Andrea Pavlovic's avatar Andrea Pavlovic
Show whitespace changes
Inline Side-by-side
API/Queries.md
View page @ 162933ed
......@@ -89,11 +89,12 @@ The main logic is that the search parameters are presented in a data structure a
Keys are restricted, as they are not bound, as values are.
The must either be a reference to a [column](/API/Queries/Attributes#permitted-column-names) or a call
to on of the [permitted functions](/API/Queries/Attributes#permitted-functions).
They must either be a reference to a [column](/API/Queries/Attributes#permitted-column-names) or a call
to one of the [permitted functions](/API/Queries/Attributes#permitted-functions).
### Examples:
#### and
```json
{
"conds" : {
......@@ -115,6 +116,9 @@ WHERE ( ( me.id = ? AND me.name = ? ) )
```
```sql
WHERE ( ( me.id < ? AND me.name = ? ) )
#### or
```
```json
{
......@@ -130,6 +134,20 @@ WHERE ( ( me.id < ? AND me.name = ? ) )
WHERE ( me.id < ? OR me.name = ? ) )
```
#### json(b)
#### functions
`POST /data/system/entity/query`
```json
{
"conds": {
"coalesce(me.id,1)": 1
}
}
```
For more examples of search options see [Query-Search-Options](/API/Queries/Query-Search-Options) and [Query-Examples](/API/Queries/Query-Examples).
## [Attributes](/API/Queries/Attributes)
......
Clone repository
  • API
    • Available Endpoints
    • Changing Passwords
    • Form Input Types
    • Introduction
    • Logout
    • Plugins
    • Queries
    • Queries
      • Attributes
      • Context
      • Query Examples
      • Query Search Options
      • Referenced Instances
      • Saved Queries
    • Schema_Changes
    • Storing Files
View All Pages