Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
Fully Compatible
-
Query 2020-03-23, Query 2020-04-06, Query 2020-04-20
Description
A lot of tests have overly verbose code doing something like the following:
// Construct the document {array: [{a: 1}, {a: 2}]}.
|
Document{{"array", vector<Value>{Value(Document{{"a", 1}}), Value(Document{{"a", 2}})}}} |
It would be nice to add some type(s) or constructor(s) to make this easier, maybe something like one or more of the following:
Value::array(std::initializer_list<ImplicitValue>)
|
Value(std::vector<Document>)
|