Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8495

Comment on: "manual/reference/operator/aggregation/project.txt"

    XMLWordPrintableJSON

Details

    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

      Attachments

        Activity

          People

            Unassigned Unassigned
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 27 weeks, 6 days ago