1 year ago

#264304

test-img

Pinky Promise

Aggregate in MongodbCharts

I'm having an error when I'm putting my aggregation in mongodbChart. This code is working fine in normal aggregation but when I'm putting it in MongodbCharts it gives me an error.

FunctionError: (InvalidPipelineOperator) Invalid $addFields :: caused by :: Unrecognized expression '$group'

code

{
    "$group": {
      "_id": "$displayName",
      "count": {
        "$sum": 1
      }
    }
  },
  {
    "$match": {
      "_id": {
        "$ne": null
      },
      "count": {
        "$gt": 1
      }
    }
  }

mongodb

aggregation-framework

mongodb-charts

0 Answers

Your Answer

Accepted video resources