[DOCS-6547] Comment on: "manual/reference/operator/query/all.txt" Created: 06/Nov/15  Updated: 03/Nov/17  Resolved: 06/Nov/15

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Mongo DB 2.6.11, running on Ubuntu Linux

Location: https://docs.mongodb.org/manual/reference/operator/query/all/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36
Referrer: https://www.google.co.uk/
Screen Resolution: 1920 x 1080
repo: docs
source: reference/operator/query/all


Participants:
Days since reply: 8 years, 14 weeks, 5 days ago

 Description   

Hi,
Your data query pages are too simplistic. It might be suitable for someone with very small needs, but real world systems and implementations are much more complex and whether by design or accident have very much more convoluted document structures. Your help pages do nothing to support those customers. As an example, I'm at a Mongo DB user where the document structures are complex and nested, and there is no explanation for how to query documents for a nested value. How is such a query performed?
A test document is like:
{
"_id" : ObjectId("560e49f93b0000130039359d"),
"applicationId" : "098765432134567",
"mainApplicantNino" : "CS700100A",
"availableForCOCAutomation" : false,
"userLevelOfAssurance" : "2",
"userIsMainApplicant" : true,
"nino" : "CS700100A",
"json" : "

{\"changeType\":\"changeTelephoneNumber\",\"id\":\"560e49f93b0000130039359d\"}

"
}

My question is how can such a document be queried for the value of the element 'changeType', as in the document above. There is nothing I have found in your docs pages to help me to achieve such a result.

Regards,



 Comments   
Comment by Kay Kim (Inactive) [ 06/Nov/15 ]

Emailed reporter regarding dot notation as well as links to

https://docs.mongodb.org/manual/tutorial/query-documents/#embedded-documents
https://docs.mongodb.org/manual/reference/method/db.collection.find/#query-embedded-documents

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