Skip to content

Commit

Permalink
Fix incorrect 'deletion' mentions on the DB wiki pages (#433)
Browse files Browse the repository at this point in the history
* s/deletion/update/

* s/delete/update/

* s/deletion//

* Fix linter
  • Loading branch information
matr1x-hackmud authored May 1, 2024
1 parent 9390b34 commit caaa7d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions docs/scripting/db/db.u.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ Update operators can be used to set new individual values, increment integer val

An object is returned upon updating documents with this function, providing extra details about whether it succeeded:

| Key | Information |
| --------- | -------------------------------------------------------------------------------- |
| n | Number of documents matched in the query |
| nModified | Number of documents modified, after evaluating all update expressions |
| ok | If the operation succeeded, == 1 |
| opTime | Object that contains a property 't' -- time of deletion operation in millieconds |
| Key | Information |
| --------- | ------------------------------------------------------------------------------ |
| n | Number of documents matched in the query |
| nModified | Number of documents modified, after evaluating all update expressions |
| ok | If the operation succeeded, == 1 |
| opTime | Object that contains a property 't' -- time of update operation in millieconds |

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/scripting/db/db.u1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ An object is returned upon updating documents with this function, providing extr
| n | Number of documents matched in the query. This will only ever be 0 or 1 |
| nModified | Number of documents modified, after evaluating all update expressions. This will only ever be 0 or 1 |
| ok | If the operation succeeded, == 1 |
| opTime | Object that contains a property 't' -- time of deletion operation in millieconds |
| opTime | Object that contains a property 't' -- time of update operation in millieconds |

## Example

Expand Down
14 changes: 7 additions & 7 deletions docs/scripting/db/db.us.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ The conditions of the update will be applied to the new document alongside its i

An object is returned upon updating documents with this function, providing extra details about whether it succeeded:

| Key | Information |
| --------- | -------------------------------------------------------------------------------- |
| n | Number of documents matched in the query |
| nModified | Number of documents modified, after evaluating all update expressions |
| upserted | If an upsertion occurred, provides an index integer |
| ok | If the operation succeeded, == 1 |
| opTime | Object that contains a property 't' -- time of deletion operation in millieconds |
| Key | Information |
| --------- | ----------------------------------------------------------------------- |
| n | Number of documents matched in the query |
| nModified | Number of documents modified, after evaluating all update expressions |
| upserted | If an upsertion occurred, provides an index integer |
| ok | If the operation succeeded, == 1 |
| opTime | Object that contains a property 't' -- time of operation in millieconds |

## Example

Expand Down

0 comments on commit caaa7d3

Please sign in to comment.