skip to Main Content

Mongodb – i need to update text values of step 1 data using bulkWrite method and $,$[],arrayFilters how can i do please explain

{ _id: ObjectId("65bc98f235375d1d97621e06"), name: 'Aspirin', type: 'Pain Relief', forms: [ { formType: 'TabletsData', strength: '100mg', dosageInstructions: [ { time: 'Morning', instructions: [ { step: 1, text: 'Take 1 tablet with breakfast.', _id: ObjectId("65bc98f235375d1d97621e09") }, { step: 2, text: 'Drink a…

VIEW QUESTION

Need to optimize mongodb query

I have a mongodb query and already created all required indices. But query still scanning all the documents in the collection. Following is the query: [ { "$group": { "driverStatuses": { "$addToSet": "$driverStatus" }, "batchAddedAt": { "$first": "$batchAddedAt" }, "cityId":…

VIEW QUESTION
Back To Top
Search