Commit f801a6c
api.db: enable
`in` operator: Enable support for query operator to
return documents by matching field value from a list
of multiple values.
For instance nodes with state `running` and `done`
can be retrieved by the following request:
`http://API_URL/nodes?state__in=running,done`
Multiple values should be comma-separated in the
request URL.
`nin` operator: Enable support for query operator to
return documents that do not match any of the field value
from a list of multiple values.
For instance nodes with state other than `running` and
`done` can be retrieved by the following request:
`http://API_URL/nodes?state__nin=running,done`
Multiple values should be comma-separated in the
request URL just as `in` operator.
Signed-off-by: Jeny Sadadia <jeny.sadadia@collabora.com>in and nin query operators1 parent c2b3b56 commit f801a6c
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
141 | 146 | | |
142 | 147 | | |
143 | 148 | | |
| |||
0 commit comments