Skip to content

Commit 412eeb5

Browse files
authored
Merge pull request #222 from HarperDB/fix/nosql-operations
Fix some typos & formatting in operations-api/nosql-operations.md
2 parents de1349b + 993ed85 commit 412eeb5

File tree

6 files changed

+259
-259
lines changed

6 files changed

+259
-259
lines changed

docs/developers/operations-api/nosql-operations.md

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ title: NoSQL Operations
88

99
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.
1010

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
1515

1616
### Body
1717

@@ -53,10 +53,10 @@ Adds one or more rows of data to a database table. Primary keys of the inserted
5353

5454
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.
5555

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
6060

6161
### Body
6262

@@ -95,10 +95,10 @@ Changes the values of specified attributes in one or more rows in a database tab
9595

9696
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.
9797

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
102102

103103
### Body
104104

@@ -144,10 +144,10 @@ Changes the values of specified attributes for rows with matching primary keys t
144144

145145
Removes one or more rows of data from a specified table.
146146

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
151151

152152
### Body
153153

@@ -176,11 +176,11 @@ Removes one or more rows of data from a specified table.
176176

177177
Returns data from a table for one or more primary keys.
178178

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
184184

185185
### Body
186186

@@ -215,12 +215,12 @@ Returns data from a table for one or more primary keys.
215215

216216
Returns data from a table for a matching value.
217217

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
224224

225225
### Body
226226

@@ -254,24 +254,24 @@ Returns data from a table for a matching value.
254254

255255
Returns data from a table for one or more matching conditions. This supports grouping of conditions to indicate order of operations as well.
256256

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
272272
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.
275275

276276
### Body
277277

@@ -286,7 +286,7 @@ Returns data from a table for one or more matching conditions. This supports gro
286286
"sort": {
287287
"attribute": "id",
288288
"next": {
289-
"dog_name": "age",
289+
"attribute": "age",
290290
"descending": true
291291
}
292292
},

site/versioned_docs/version-4.2/developers/operations-api/nosql-operations.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ title: NoSQL Operations
88

99
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.
1010

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
1515

1616
### Body
1717

@@ -53,10 +53,10 @@ Adds one or more rows of data to a database table. Primary keys of the inserted
5353

5454
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.
5555

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
6060

6161
### Body
6262

@@ -95,10 +95,10 @@ Changes the values of specified attributes in one or more rows in a database tab
9595

9696
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.
9797

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
102102

103103
### Body
104104

@@ -144,10 +144,10 @@ Changes the values of specified attributes for rows with matching primary keys t
144144

145145
Removes one or more rows of data from a specified table.
146146

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
151151

152152
### Body
153153

@@ -176,11 +176,11 @@ Removes one or more rows of data from a specified table.
176176

177177
Returns data from a table for one or more primary keys.
178178

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
184184

185185
### Body
186186

@@ -215,12 +215,12 @@ Returns data from a table for one or more primary keys.
215215

216216
Returns data from a table for a matching value.
217217

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
224224

225225
### Body
226226

@@ -254,17 +254,17 @@ Returns data from a table for a matching value.
254254

255255
Returns data from a table for one or more matching conditions.
256256

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
268268

269269
### Body
270270

0 commit comments

Comments
 (0)