[DOCS-8146] MongoDB Extended JSON documentation for DBRef is incomplete Created: 21/Jun/16  Updated: 30/Oct/23  Resolved: 16/Mar/23

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Shane Harvey Assignee: Andrew Aldridge
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 45 weeks, 5 days ago

 Description   

https://docs.mongodb.com/manual/reference/mongodb-extended-json/#db-reference

DBRef can be have a "$db" field:

strict mode mongo shell mode
{ "$ref": "<name>", "$id": "<id>" } DBRef("<name>", "<id>")
{ "$ref": "<name>", "$id": "<id>", "$db": "<db>" } DBRef("<name>", "<id>", "<db>")

https://github.com/mongodb/mongo/blob/master/src/mongo/dbtests/jsontests.cpp#L1252



 Comments   
Comment by Sarah Olson [ 24/Mar/23 ]

Thanks for the confirm shane.harvey@mongodb.com! Appreciate it.

Comment by Shane Harvey [ 16/Mar/23 ]

The current DBRef page looks good to me: https://www.mongodb.com/docs/v6.0/reference/database-references/

Comment by Sarah Olson [ 16/Mar/23 ]

Closing this out on the grounds that:

  • Details of this request are significantly outdated. 
  • Our documentation has evolved substantially since this request was made. 

Based on this, closing as WON'T DO. Please don't hesitate to give me a shout or to reopen if you disagree.

Generated at Thu Feb 08 07:55:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.