skip to Main Content

Update nested array mongodb

I want do an updateMany() operation on a nested array for all documents of my collection. Here is the documents format : { "number": 1, "products": [{ "name": "test", "compositions": ["water", "sugar"], }] }, { "number": 2, "products": [{ "name":…

VIEW QUESTION

MongoDB Export with Query

In Mongodb, Mongoexport for collection is working on windows but when use --query getting the below error Failed: error parsing query as Extended JSON: invalid JSON input --query="{'CreatedOnUtc' : { '$gt' : ISODate('2021-04-22T08:36:28.869Z')}}"

VIEW QUESTION
Back To Top
Search