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

Comment on: "primer/import-data.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None

    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 !

      Attachments

        Activity

          People

            steve.renaker@mongodb.com Steve Renaker (Inactive)
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 5 weeks ago