$facet not supported

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.2.24
    • Component/s: MongoDB 3.4
    • Environment:
      windows 7 enterprise edition, node version: 6.9.4, mongoDb 3.4
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Facet is not functioning in the MONGODB-NODE.JS-DRIVER
      https://docs.mongodb.com/v3.4/reference/operator/aggregation/facet/

      it returns the list of document instead of the grouped count result.
      eg. query
      db.artwork.aggregate( [
      {
      $facet: {
      "categorizedByTags": [

      { $unwind: "$tags" }

      ,

      { $sortByCount: "$tags" }

      ]
      }])

            Assignee:
            Unassigned
            Reporter:
            samrat
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: