[DOCS-9742] Comment on: "primer/import-data.txt" Created: 09/Jan/17  Updated: 03/Nov/17  Resolved: 09/Jan/17

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

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

Location: https://docs.mongodb.com/getting-started/shell/import-data/
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Referrer: https://www.google.com.tw/
Screen Resolution: 1920 x 1080


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

 Description   

Does it comply with NODEJS DRIVER 2.2 's example ??
http://mongodb.github.io/node-mongodb-native/2.2/tutorials/aggregation/

collection.aggregate(
[ { '$match':

{ "stars": 5 }

},

{ '$unwind': '$categories'}

,
{ '$group': { '_id': "$categories", 'fiveStars':

{ '$sum': 1 }

} }
],

According the example, I try to found the match key - "stars" in the json file.
But the json file didn't have the match key ???

thanks !



 Comments   
Comment by Githook User [ 11/Jan/17 ]

Author:

{u'username': u'christkv', u'name': u'Christian Amor Kvalheim', u'email': u'christkv@users.noreply.github.com'}

Message: Merge pull request #1462 from steveren/DOCS-9742

DOCS-9742: fix aggregation example
Branch: 2.2
https://github.com/mongodb/node-mongodb-native/commit/1a3c7f529e66a35bbd515cfb87c1900be2be4e0f

Comment by Githook User [ 11/Jan/17 ]

Author:

{u'username': u'christkv', u'name': u'Christian Amor Kvalheim', u'email': u'christkv@users.noreply.github.com'}

Message: Merge pull request #1462 from steveren/DOCS-9742

DOCS-9742: fix aggregation example
Branch: 2.2
https://github.com/mongodb/node-mongodb-native/commit/1a3c7f529e66a35bbd515cfb87c1900be2be4e0f

Comment by Githook User [ 11/Jan/17 ]

Author:

{u'username': u'steveren', u'name': u'Steve Renaker', u'email': u'steve.renaker@mongodb.com'}

Message: DOCS-9742: fix aggregation example
Branch: 2.2
https://github.com/mongodb/node-mongodb-native/commit/c43dc208ac167ea1431baa2d1bf4b3a738fd0404

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