[DOCS-7294] Comment on: "primer/query.txt" Created: 29/Feb/16  Updated: 03/Nov/17  Resolved: 27/Jul/16

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

Type: Bug Priority: Major - P3
Reporter: Jorge Mario Lenis L Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Centos on AWS
java version "1.8.0_71"
Java(TM) SE Runtime Environment (build 1.8.0_71-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.71-b15, mixed mode)

Location: https://docs.mongodb.org/getting-started/java/query/
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36 OPR/35.0.2066.82
Referrer: https://docs.mongodb.org/getting-started/java/insert/
Screen Resolution: 1920 x 1080
repo: docs
source: query


Participants:
Days since reply: 7 years, 29 weeks ago

 Description   

I have this aggregation query

bson Document replaces multiple appearance of $unwind, $match and probability $project

Document aggregation = new Document()
.append("$match", new Document("io.id", novedad.io_id))
.append("$unwind", "$usuarios")
.append("$project", new Document("usr", "$usuarios"))
.append("$unwind", "$usr.io")
.append("$match", new Document("ioLog", novedad.idlog));

The json transform looks ike this
{ "$match" :

{ "ioLog" : "00000000b0de35ac" }

, "$unwind" : "$usr.io", "$project" :

{ "usuario" : "$usuarios" }

}

first $match is replaced by second one and happened the same to $unwind



 Comments   
Comment by Kay Kim (Inactive) [ 27/Jul/16 ]

Jira housekeeping as we are undergoing projects for driver documentation. If you require additional support, please open a new ticket for prioritization. Regards, Kay Kim

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