Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions docs/developers/operations-api/nosql-operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,12 @@ Returns data from a table for one or more matching conditions. This supports gro
- `next` _(optional)_ - This can define the next sort object that will be used to break ties for sorting when there are multiple records with the same value for the first attribute (follows the same structure as `sort`).
- `get_attributes` _(required)_ - define which attributes you want returned. Use `['*']` to return all attributes
- `conditions` _(required)_ - the array of conditions objects, specified below, to filter by. Must include one or more object in the array that are a condition or a grouped set of conditions. A condition has the following properties:
- `search_attribute` _(required)_ - the attribute you wish to search, can be any attribute
- `search_type` _(required)_ - the type of search to perform - `equals`, `contains`, `starts_with`, `ends_with`, `greater_than`, `greater_than_equal`, `less_than`, `less_than_equal`, `between`
- `search_value` _(required)_ - case-sensitive value you wish to search. If the `search_type` is `between` then use an array of two values to search between
- `attribute` _(required)_ - the attribute you wish to search, can be any attribute
- `search_attribute` - deprecated in favor of `attribute`
- `comparator` _(required)_ - the type of search to perform - `equals`, `contains`, `starts_with`, `ends_with`, `greater_than`, `greater_than_equal`, `less_than`, `less_than_equal`, `between`
- `search_type` - deprecated in favor of `comparator`
- `value` _(required)_ - case-sensitive value you wish to search. If the `comparator` is `between` then use an array of two values to search between
- `search_value` - deprecated in favor of `value`
Or a set of grouped conditions has the following properties:
- `operator` _(optional)_ - the operator used between each condition - `and`, `or`. The default is `and`
- `conditions` _(required)_ - the array of conditions objects as described above.
Expand All @@ -293,27 +296,27 @@ Returns data from a table for one or more matching conditions. This supports gro
"get_attributes": ["*"],
"conditions": [
{
"search_attribute": "age",
"search_type": "between",
"search_value": [5, 8]
"attribute": "age",
"comparator": "between",
"value": [5, 8]
},
{
"search_attribute": "weight_lbs",
"search_type": "greater_than",
"search_value": 40
"attribute": "weight_lbs",
"comparator": "greater_than",
"value": 40
},
{
"operator": "or",
"conditions": [
{
"search_attribute": "adorable",
"search_type": "equals",
"search_value": true
"attribute": "adorable",
"comparator": "equals",
"value": true
},
{
"search_attribute": "lovable",
"search_type": "equals",
"search_value": true
"attribute": "lovable",
"comparator": "equals",
"value": true
}
]
}
Expand Down
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these fields no longer supported or will they still work on 4.6? Same question for 4.7 and beyond? I assume we are remaining backwards compatible. It may be valuable to include a note somewhere what these fields were previously called in case someone goes searching for them referencing existing code.

Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,12 @@ Returns data from a table for one or more matching conditions. This supports gro
- `next` _(optional)_ - This can define the next sort object that will be used to break ties for sorting when there are multiple records with the same value for the first attribute (follows the same structure as `sort`).
- `get_attributes` _(required)_ - define which attributes you want returned. Use `['*']` to return all attributes
- `conditions` _(required)_ - the array of conditions objects, specified below, to filter by. Must include one or more object in the array that are a condition or a grouped set of conditions. A condition has the following properties:
- `search_attribute` _(required)_ - the attribute you wish to search, can be any attribute
- `search_type` _(required)_ - the type of search to perform - `equals`, `contains`, `starts_with`, `ends_with`, `greater_than`, `greater_than_equal`, `less_than`, `less_than_equal`, `between`
- `search_value` _(required)_ - case-sensitive value you wish to search. If the `search_type` is `between` then use an array of two values to search between
- `attribute` _(required)_ - the attribute you wish to search, can be any attribute.
- `search_attribute` - deprecated in favor of `attribute`
- `comparator` _(required)_ - the type of search to perform - `equals`, `contains`, `starts_with`, `ends_with`, `greater_than`, `greater_than_equal`, `less_than`, `less_than_equal`, `between`
- `search_type` - deprecated in favor of `comparator`
- `value` _(required)_ - case-sensitive value you wish to search. If the `comparator` is `between` then use an array of two values to search between
- `search_value` - deprecated in favor of `value`
Or a set of grouped conditions has the following properties:
- `operator` _(optional)_ - the operator used between each condition - `and`, `or`. The default is `and`
- `conditions` _(required)_ - the array of conditions objects as described above.
Expand All @@ -293,27 +296,27 @@ Returns data from a table for one or more matching conditions. This supports gro
"get_attributes": ["*"],
"conditions": [
{
"search_attribute": "age",
"search_type": "between",
"search_value": [5, 8]
"attribute": "age",
"comparator": "between",
"value": [5, 8]
},
{
"search_attribute": "weight_lbs",
"search_type": "greater_than",
"search_value": 40
"attribute": "weight_lbs",
"comparator": "greater_than",
"value": 40
},
{
"operator": "or",
"conditions": [
{
"search_attribute": "adorable",
"search_type": "equals",
"search_value": true
"attribute": "adorable",
"comparator": "equals",
"value": true
},
{
"search_attribute": "lovable",
"search_type": "equals",
"search_value": true
"attribute": "lovable",
"comparator": "equals",
"value": true
}
]
}
Expand Down