| 1 |
description: "returnDocument-enum-invalid" |
| 2 |
|
| 3 |
schemaVersion: "1.0" |
| 4 |
|
| 5 |
createEntities: |
| 6 |
- client: |
| 7 |
id: &client0 client0 |
| 8 |
- database: |
| 9 |
id: &database0 database0 |
| 10 |
client: *client0 |
| 11 |
databaseName: &databaseName test |
| 12 |
- collection: |
| 13 |
id: &collection0 collection0 |
| 14 |
database: *database0 |
| 15 |
collectionName: &collectionName coll |
| 16 |
|
| 17 |
tests: |
| 18 |
- description: "FindOneAndReplace returnDocument invalid enum value" |
| 19 |
operations: |
| 20 |
- name: findOneAndReplace |
| 21 |
object: *collection0 |
| 22 |
arguments: |
| 23 |
filter: { _id: 1 } |
| 24 |
replacement: { _id: 1, x: 111 } |
| 25 |
returnDocument: invalid |
| 26 |
|
| 27 |
- description: "FindOneAndUpdate returnDocument invalid enum value" |
| 28 |
operations: |
| 29 |
- name: findOneAndUpdate |
| 30 |
object: *collection0 |
| 31 |
arguments: |
| 32 |
filter: { _id: 1 } |
| 33 |
update: { $inc: { x : 1 }} |
| 34 |
returnDocument: invalid |