Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
-
Needed
-
This ticket will change the allowed JSON format of the query flag.
-
v4.0, v3.6
-
(copied to CRM)
Description
The 'query' command line flag consumes legacy JSON. This needs to be converted to take relaxed or canonical extended JSON. This is a breaking change, because the legacy format allow unquoted JSON keys like the shell does, but I think it's an acceptable change to require JSON input to be actual, legal JSON.
We also need to change the query type from bson.M to bson.D to be order preserving and use the driver's extended JSON parser to give us an order-preserving translation of the JSON.
Attachments
Issue Links
- is documented by
-
DOCS-11478 Updated Extended JSON docs to address v2
-
- Closed
-
-
DOCS-12939 Docs for TOOLS-2276: dump/export/files query should use extJSON v2 and ordered BSON
-
- Closed
-
- is duplicated by
-
TOOLS-2122 Inconsistent document count when using mongodump with the --query argument
-
- Closed
-
-
TOOLS-2317 Mongodump - same query, different results
-
- Closed
-
-
TOOLS-628 Make query flag preserve key order in subdocuments
-
- Closed
-