Details
-
Task
-
Status: Closed
-
Major - P3
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
http://docs.mongodb.org/manual/applications/database-references/#dbrefs
It only mentions that the mongo shell offers a DBRef but there is nothing about usage nor an example.
For example, it is unclear whether or not the second parameter in DBRef needs to be surrounded by quotes, or needs to be a proper ObjectId.
It seems rather flexible when using it in the shell, i.e DBRef("coll", 1) seems to work, however, the JSON parser code insists that the second field is a quoted string containing 24 characters, see:
https://github.com/mongodb/mongo/blob/master/src/mongo/db/json.cpp#L663
Attachments
Issue Links
- is related to
-
SERVER-9082 JSON parser doesn't accept simple DBRef $id values, like ints or strings
-
- Closed
-