Skip to content

Conversation

deffrin
Copy link

@deffrin deffrin commented Jan 25, 2018

Added an optional parameter to pop function in Mongo DB Library for popping a value from an array field at a specific index.
I added this to perform an update like this for removing an array element at a specific array index
db.collection_name.update({"_id":ObjectId('OBJECT-ID') }, {'$pop': {"some_field_name": 4} } )

…opping a value from an array field at a specific index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant