whenever i am trying to convert string into integer i am getting this error
Hi Harsh,
$toInt is available as a new operator from MongoDB v4.0+. It is a shorthand from operator $convert. $convert is part of a new feature in MongoDB v4.0 to enable the aggregation pipeline to transform mixed data types into standardised formats natively within the database.
See also MongoDB: Upgrade a Replica Set to 4.0
Regards,
Wan.