You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deletes a single document based on the filter and sort criteria, returning the deleted document.
The command accepts filter clause, sort clause and projection to be applied for the response document that was deleted
Sample request: { "findOneAndDelete": { "filter": {"location": "London"}, "sort" : ["race.start_date"], "projection" : {"location": 1} } }
Deletes a single document based on the filter and sort criteria, returning the deleted document.
The command accepts filter clause, sort clause and projection to be applied for the response document that was deleted
Sample request:
{ "findOneAndDelete": { "filter": {"location": "London"}, "sort" : ["race.start_date"], "projection" : {"location": 1} } }
Sample Response:
{ "data": { "docs": [ { "_id": "1", "location": "New York", "count": 3 } ], "count": 1, "status": { "deletedCount": 1 } } }
The text was updated successfully, but these errors were encountered: