You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/developers/operations-api/nosql-operations.md
+45-45Lines changed: 45 additions & 45 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,10 @@ title: NoSQL Operations
8
8
9
9
Adds one or more rows of data to a database table. Primary keys of the inserted JSON record may be supplied on insert. If a primary key is not provided, then a GUID or incremented number (depending on type) will be generated for each record.
10
10
11
-
- operation _(required)_ - must always be `insert`
12
-
- database _(optional)_ - database where the table you are inserting records into lives. The default is `data`
13
-
- table _(required)_ - table where you want to insert records
14
-
- records _(required)_ - array of one or more records for insert
11
+
-`operation`_(required)_ - must always be `insert`
12
+
-`database`_(optional)_ - database where the table you are inserting records into lives. The default is `data`
13
+
-`table`_(required)_ - table where you want to insert records
14
+
-`records`_(required)_ - array of one or more records for insert
15
15
16
16
### Body
17
17
@@ -53,10 +53,10 @@ Adds one or more rows of data to a database table. Primary keys of the inserted
53
53
54
54
Changes the values of specified attributes in one or more rows in a database table as identified by the primary key. NOTE: Primary key of the updated JSON record(s) MUST be supplied on update.
55
55
56
-
- operation _(required)_ - must always be `update`
57
-
- database _(optional)_ - database of the table you are updating records in. The default is `data`
58
-
- table _(required)_ - table where you want to update records
59
-
- records _(required)_ - array of one or more records for update
56
+
-`operation`_(required)_ - must always be `update`
57
+
-`database`_(optional)_ - database of the table you are updating records in. The default is `data`
58
+
-`table`_(required)_ - table where you want to update records
59
+
-`records`_(required)_ - array of one or more records for update
60
60
61
61
### Body
62
62
@@ -95,10 +95,10 @@ Changes the values of specified attributes in one or more rows in a database tab
95
95
96
96
Changes the values of specified attributes for rows with matching primary keys that exist in the table. Adds rows to the database table for primary keys that do not exist or are not provided.
97
97
98
-
- operation _(required)_ - must always be `upsert`
99
-
- database _(optional)_ - database of the table you are updating records in. The default is `data`
100
-
- table _(required)_ - table where you want to update records
101
-
- records _(required)_ - array of one or more records for update
98
+
-`operation`_(required)_ - must always be `upsert`
99
+
-`database`_(optional)_ - database of the table you are updating records in. The default is `data`
100
+
-`table`_(required)_ - table where you want to update records
101
+
-`records`_(required)_ - array of one or more records for update
102
102
103
103
### Body
104
104
@@ -144,10 +144,10 @@ Changes the values of specified attributes for rows with matching primary keys t
144
144
145
145
Removes one or more rows of data from a specified table.
146
146
147
-
- operation _(required)_ - must always be `delete`
148
-
- database _(optional)_ - database where the table you are deleting records lives. The default is `data`
149
-
- table _(required)_ - table where you want to deleting records
150
-
- ids _(required)_ - array of one or more primary key values, which identifies records to delete
147
+
-`operation`_(required)_ - must always be `delete`
148
+
-`database`_(optional)_ - database where the table you are deleting records lives. The default is `data`
149
+
-`table`_(required)_ - table where you want to deleting records
150
+
-`ids`_(required)_ - array of one or more primary key values, which identifies records to delete
151
151
152
152
### Body
153
153
@@ -176,11 +176,11 @@ Removes one or more rows of data from a specified table.
176
176
177
177
Returns data from a table for one or more primary keys.
178
178
179
-
- operation _(required)_ - must always be `search_by_id`
180
-
- database _(optional)_ - database where the table you are searching lives. The default is `data`
181
-
- table _(required)_ - table you wish to search
182
-
- ids _(required)_ - array of primary keys to retrieve
183
-
-get*attributes *(required)_ - define which attributes you want returned. \_Use`['*']` to return all attributes_
179
+
-`operation`_(required)_ - must always be `search_by_id`
180
+
-`database`_(optional)_ - database where the table you are searching lives. The default is `data`
181
+
-`table`_(required)_ - table you wish to search
182
+
-`ids`_(required)_ - array of primary keys to retrieve
183
+
-`get_attributes`_(required)_ - define which attributes you want returned. Use`['*']` to return all attributes
184
184
185
185
### Body
186
186
@@ -215,12 +215,12 @@ Returns data from a table for one or more primary keys.
215
215
216
216
Returns data from a table for a matching value.
217
217
218
-
- operation _(required)_ - must always be `search_by_value`
219
-
- database _(optional)_ - database where the table you are searching lives. The default is `data`
220
-
- table _(required)_ - table you wish to search
221
-
-search*attribute *(required)\_ - attribute you wish to search can be any attribute
222
-
-search*value *(required)\_ - value you wish to search - wild cards are allowed
223
-
-get*attributes *(required)\_ - define which attributes you want returned. Use `['*']` to return all attributes
218
+
-`operation`_(required)_ - must always be `search_by_value`
219
+
-`database`_(optional)_ - database where the table you are searching lives. The default is `data`
220
+
-`table`_(required)_ - table you wish to search
221
+
-`search_attribute`_(required)_ - attribute you wish to search can be any attribute
222
+
-`search_value`_(required)_ - value you wish to search - wild cards are allowed
223
+
-`get_attributes`_(required)_ - define which attributes you want returned. Use `['*']` to return all attributes
224
224
225
225
### Body
226
226
@@ -254,24 +254,24 @@ Returns data from a table for a matching value.
254
254
255
255
Returns data from a table for one or more matching conditions. This supports grouping of conditions to indicate order of operations as well.
256
256
257
-
- operation _(required)_ - must always be `search_by_conditions`
258
-
- database _(optional)_ - database where the table you are searching lives. The default is `data`
259
-
- table _(required)_ - table you wish to search
260
-
- operator _(optional)_ - the operator used between each condition - `and`, `or`. The default is `and`
261
-
- offset _(optional)_ - the number of records that the query results will skip. The default is `0`
262
-
- limit _(optional)_ - the number of records that the query results will include. The default is `null`, resulting in no limit
263
-
- sort _optional_ - This is an object that indicates the sort order. It has the following properties:
264
-
- attribute _(required)_ - The attribute to sort by
265
-
- descending _(optional)_ - If true, will sort in descending order (defaults to ascending order)
266
-
- 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`, and can recursive additional attributes).
267
-
-get*attributes *(required)\_ - define which attributes you want returned. Use `['*']` to return all attributes
268
-
- 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:
269
-
-search*attribute *(required)\_ - the attribute you wish to search, can be any attribute
270
-
-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`
271
-
-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
257
+
-`operation`_(required)_ - must always be `search_by_conditions`
258
+
-`database`_(optional)_ - database where the table you are searching lives. The default is `data`
259
+
-`table`_(required)_ - table you wish to search
260
+
-`operator`_(optional)_ - the operator used between each condition - `and`, `or`. The default is `and`
261
+
-`offset`_(optional)_ - the number of records that the query results will skip. The default is `0`
262
+
-`limit`_(optional)_ - the number of records that the query results will include. The default is `null`, resulting in no limit
263
+
-`sort`_optional_ - This is an object that indicates the sort order. It has the following properties:
264
+
-`attribute`_(required)_ - The attribute to sort by
265
+
-`descending`_(optional)_ - If true, will sort in descending order (defaults to ascending order)
266
+
-`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`).
267
+
-`get_attributes`_(required)_ - define which attributes you want returned. Use `['*']` to return all attributes
268
+
-`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:
269
+
-`search_attribute`_(required)_ - the attribute you wish to search, can be any attribute
270
+
-`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`
271
+
-`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
272
272
Or a set of grouped conditions has the following properties:
273
-
- operator _(optional)_ - the operator used between each condition - `and`, `or`. The default is `and`
274
-
- conditions _(required)_ - the array of conditions objects as described above.
273
+
-`operator`_(optional)_ - the operator used between each condition - `and`, `or`. The default is `and`
274
+
-`conditions`_(required)_ - the array of conditions objects as described above.
275
275
276
276
### Body
277
277
@@ -286,7 +286,7 @@ Returns data from a table for one or more matching conditions. This supports gro
Copy file name to clipboardExpand all lines: site/versioned_docs/version-4.2/developers/operations-api/nosql-operations.md
+38-38Lines changed: 38 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,10 @@ title: NoSQL Operations
8
8
9
9
Adds one or more rows of data to a database table. Primary keys of the inserted JSON record may be supplied on insert. If a primary key is not provided, then a GUID will be generated for each record.
10
10
11
-
- operation _(required)_ - must always be `insert`
12
-
- database _(optional)_ - database where the table you are inserting records into lives. The default is `data`
13
-
- table _(required)_ - table where you want to insert records
14
-
- records _(required)_ - array of one or more records for insert
11
+
-`operation`_(required)_ - must always be `insert`
12
+
-`database`_(optional)_ - database where the table you are inserting records into lives. The default is `data`
13
+
-`table`_(required)_ - table where you want to insert records
14
+
-`records`_(required)_ - array of one or more records for insert
15
15
16
16
### Body
17
17
@@ -53,10 +53,10 @@ Adds one or more rows of data to a database table. Primary keys of the inserted
53
53
54
54
Changes the values of specified attributes in one or more rows in a database table as identified by the primary key. NOTE: Primary key of the updated JSON record(s) MUST be supplied on update.
55
55
56
-
- operation _(required)_ - must always be `update`
57
-
- database _(optional)_ - database of the table you are updating records in. The default is `data`
58
-
- table _(required)_ - table where you want to update records
59
-
- records _(required)_ - array of one or more records for update
56
+
-`operation`_(required)_ - must always be `update`
57
+
-`database`_(optional)_ - database of the table you are updating records in. The default is `data`
58
+
-`table`_(required)_ - table where you want to update records
59
+
-`records`_(required)_ - array of one or more records for update
60
60
61
61
### Body
62
62
@@ -95,10 +95,10 @@ Changes the values of specified attributes in one or more rows in a database tab
95
95
96
96
Changes the values of specified attributes for rows with matching primary keys that exist in the table. Adds rows to the database table for primary keys that do not exist or are not provided.
97
97
98
-
- operation _(required)_ - must always be `update`
99
-
- database _(optional)_ - database of the table you are updating records in. The default is `data`
100
-
- table _(required)_ - table where you want to update records
101
-
- records _(required)_ - array of one or more records for update
98
+
-`operation`_(required)_ - must always be `update`
99
+
-`database`_(optional)_ - database of the table you are updating records in. The default is `data`
100
+
-`table`_(required)_ - table where you want to update records
101
+
-`records`_(required)_ - array of one or more records for update
102
102
103
103
### Body
104
104
@@ -144,10 +144,10 @@ Changes the values of specified attributes for rows with matching primary keys t
144
144
145
145
Removes one or more rows of data from a specified table.
146
146
147
-
- operation _(required)_ - must always be `delete`
148
-
- database _(optional)_ - database where the table you are deleting records lives. The default is `data`
149
-
- table _(required)_ - table where you want to deleting records
150
-
- ids _(required)_ - array of one or more primary key values, which identifies records to delete
147
+
-`operation`_(required)_ - must always be `delete`
148
+
-`database`_(optional)_ - database where the table you are deleting records lives. The default is `data`
149
+
-`table`_(required)_ - table where you want to deleting records
150
+
-`ids`_(required)_ - array of one or more primary key values, which identifies records to delete
151
151
152
152
### Body
153
153
@@ -176,11 +176,11 @@ Removes one or more rows of data from a specified table.
176
176
177
177
Returns data from a table for one or more primary keys.
178
178
179
-
- operation _(required)_ - must always be `search_by_id`
180
-
- database _(optional)_ - database where the table you are searching lives. The default is `data`
181
-
- table _(required)_ - table you wish to search
182
-
- ids _(required)_ - array of primary keys to retrieve
183
-
-get*attributes *(required)_ - define which attributes you want returned. \_Use`['*']` to return all attributes_
179
+
-`operation`_(required)_ - must always be `search_by_id`
180
+
-`database`_(optional)_ - database where the table you are searching lives. The default is `data`
181
+
-`table`_(required)_ - table you wish to search
182
+
-`ids`_(required)_ - array of primary keys to retrieve
183
+
-`get_attributes`_(required)_ - define which attributes you want returned. Use`['*']` to return all attributes
184
184
185
185
### Body
186
186
@@ -215,12 +215,12 @@ Returns data from a table for one or more primary keys.
215
215
216
216
Returns data from a table for a matching value.
217
217
218
-
- operation _(required)_ - must always be `search_by_value`
219
-
- database _(optional)_ - database where the table you are searching lives. The default is `data`
220
-
- table _(required)_ - table you wish to search
221
-
-search*attribute *(required)\_ - attribute you wish to search can be any attribute
222
-
-search*value *(required)\_ - value you wish to search - wild cards are allowed
223
-
-get*attributes *(required)\_ - define which attributes you want returned. Use `['*']` to return all attributes
218
+
-`operation`_(required)_ - must always be `search_by_value`
219
+
-`database`_(optional)_ - database where the table you are searching lives. The default is `data`
220
+
-`table`_(required)_ - table you wish to search
221
+
-`search_attribute`_(required)_ - attribute you wish to search can be any attribute
222
+
-`search_value`_(required)_ - value you wish to search - wild cards are allowed
223
+
-`get_attributes`_(required)_ - define which attributes you want returned. Use `['*']` to return all attributes
224
224
225
225
### Body
226
226
@@ -254,17 +254,17 @@ Returns data from a table for a matching value.
254
254
255
255
Returns data from a table for one or more matching conditions.
256
256
257
-
- operation _(required)_ - must always be `search_by_conditions`
258
-
- database _(optional)_ - database where the table you are searching lives. The default is `data`
259
-
- table _(required)_ - table you wish to search
260
-
- operator _(optional)_ - the operator used between each condition - `and`, `or`. The default is `and`
261
-
- offset _(optional)_ - the number of records that the query results will skip. The default is `0`
262
-
- limit _(optional)_ - the number of records that the query results will include. The default is `null`, resulting in no limit
263
-
-get*attributes *(required)\_ - define which attributes you want returned. Use `['*']` to return all attributes
264
-
- conditions _(required)_ - the array of conditions objects, specified below, to filter by. Must include one or more object in the array
265
-
-search*attribute *(required)\_ - the attribute you wish to search, can be any attribute
266
-
-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`
267
-
-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
257
+
-`operation`_(required)_ - must always be `search_by_conditions`
258
+
-`database`_(optional)_ - database where the table you are searching lives. The default is `data`
259
+
-`table`_(required)_ - table you wish to search
260
+
-`operator`_(optional)_ - the operator used between each condition - `and`, `or`. The default is `and`
261
+
-`offset`_(optional)_ - the number of records that the query results will skip. The default is `0`
262
+
-`limit`_(optional)_ - the number of records that the query results will include. The default is `null`, resulting in no limit
263
+
-`get_attributes`_(required)_ - define which attributes you want returned. Use `['*']` to return all attributes
264
+
-`conditions`_(required)_ - the array of conditions objects, specified below, to filter by. Must include one or more object in the array
265
+
-`search_attribute`_(required)_ - the attribute you wish to search, can be any attribute
266
+
-`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`
267
+
-`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
0 commit comments