Description
In the examples section of https://docs.mongodb.com/database-tools/mongofiles/:
To fetch the file from the GridFS collection in the records database with _id: ObjectId("56feac751f417d0357e7140f"), you can use the following command:
mongofiles -d=records get_id 'ObjectId("56feac751f417d0357e7140f")'
Running this command resulted in an error:
Failed: error parsing id as Extended JSON: invalid JSON number. Position: 18
|
The correct command should be:
mongofiles -d=test get_id '{"$oid": "56feac751f417d0357e7140f"}'
|
Note that this incorrect example has caused some confusion in the Developer Forums.
Scope of changes
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
|