...
1# This file was created automatically using mongodb-spec-converter.
2# Please review the generated file, then remove this notice.
3
4description: findOneAndDelete-hint-clientError
5schemaVersion: '1.0'
6runOnRequirements:
7 -
8 maxServerVersion: 4.0.99
9createEntities:
10 -
11 client:
12 id: &client0 client0
13 observeEvents:
14 - commandStartedEvent
15 -
16 database:
17 id: &database0 database0
18 client: client0
19 databaseName: &database_name crud-v2
20 -
21 collection:
22 id: &collection0 collection0
23 database: database0
24 collectionName: &collection_name findOneAndDelete_hint
25initialData:
26 -
27 collectionName: *collection_name
28 databaseName: *database_name
29 documents:
30 -
31 _id: 1
32 x: 11
33 -
34 _id: 2
35 x: 22
36tests:
37 -
38 description: 'FindOneAndDelete with hint string unsupported (client-side error)'
39 operations:
40 -
41 object: *collection0
42 name: findOneAndDelete
43 arguments:
44 filter: &filter
45 _id: 1
46 hint: _id_
47 expectError:
48 isError: true
49 expectEvents:
50 -
51 client: *client0
52 events: []
53 outcome: &outcome
54 -
55 collectionName: *collection_name
56 databaseName: *database_name
57 documents:
58 -
59 _id: 1
60 x: 11
61 -
62 _id: 2
63 x: 22
64 -
65 description: 'FindOneAndDelete with hint document'
66 operations:
67 -
68 object: *collection0
69 name: findOneAndDelete
70 arguments:
71 filter: &filter
72 _id: 1
73 hint:
74 _id: 1
75 expectError:
76 isError: true
77 expectEvents:
78 -
79 client: *client0
80 events: []
81 outcome: &outcome
82 -
83 collectionName: *collection_name
84 databaseName: *database_name
85 documents:
86 -
87 _id: 1
88 x: 11
89 -
90 _id: 2
91 x: 22
View as plain text