[DOCS-8495] Comment on: "manual/reference/operator/aggregation/project.txt" Created: 03/Aug/16  Updated: 03/Nov/17  Resolved: 05/Aug/16

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: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ubuntu 16.04, Mongo 3.2.7

Location: https://docs.mongodb.com/manual/reference/operator/aggregation/project/
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36
Referrer: https://docs.mongodb.com/manual/reference/operator/aggregation-array/
Screen Resolution: 1680 x 1050


Participants:
Days since reply: 7 years, 27 weeks, 6 days ago

 Description   

Hello, I tried this example with Array in $project
db.collection.aggregate( [ { $project:

{ myArray: [ "$x", "$y" ] }

} ] )
but it doesn't work
error:
E QUERY [thread1] Error: command failed: {
"errmsg" : "exception: disallowed field type Array in object expression (at 'myArray')",
"code" : 15992,
"ok" : 0



 Comments   
Comment by Kay Kim (Inactive) [ 05/Aug/16 ]

Unable to produce on 3.2.7; however could produce on earlier 3.0.x version. Emailed user in case connecting a 3.2.7 mongo shell to a 3.0.x version of mongod instance.

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