...
1# This file was created automatically using mongodb-spec-converter.
2# Please review the generated file, then remove this notice.
3
4description: findOneAndUpdate-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 findOneAndUpdate_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: 'FindOneAndUpdate with hint string unsupported (client-side error)'
39 operations:
40 -
41 object: *collection0
42 name: findOneAndUpdate
43 arguments:
44 filter: &filter
45 _id: 1
46 update: &update
47 $inc:
48 x: 1
49 hint: _id_
50 expectError:
51 isError: true
52 expectEvents:
53 -
54 client: *client0
55 events: []
56 outcome: &outcome
57 -
58 collectionName: *collection_name
59 databaseName: *database_name
60 documents:
61 -
62 _id: 1
63 x: 11
64 -
65 _id: 2
66 x: 22
67 -
68 description: 'FindOneAndUpdate with hint document unsupported (client-side error)'
69 operations:
70 -
71 object: *collection0
72 name: findOneAndUpdate
73 arguments:
74 filter: *filter
75 update: *update
76 hint:
77 _id: 1
78 expectError:
79 isError: true
80 expectEvents:
81 -
82 client: *client0
83 events: []
84 outcome: *outcome
View as plain text