-
Type: Task
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.0.5
-
Component/s: None
-
Labels:
-
Environment:OSX, but probably all platforms
-
Empty show more show less
Not very important... I checked on 2.0.4 only...
InsertOne returns an array of one item in ops (the document inserted), and a single value for InsertedId (singular)
InsertMany returns an array of inserted document in ['ops'], and an array of inserted _id in insertedIds (plural)
would it be more consistent to return always an array for id inserted, in the One case, and on the Many case, like for the document inserted ?
Nicolas