Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added position option to array push & pop #603

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eliachiarucci
Copy link

@eliachiarucci eliachiarucci commented Jul 20, 2019

Added an option for selecting the index position of the push & pop operations.

Example:

{ _id: 'id10', planets: ['Earth', 'Venus', 'Mars'] } Initial Array

db.update({_id: "id10"},  {$push : {planets: "Pluto"}, {position: 2}, function(){}

{ _id: 'id10', planets: ['Earth' , 'Venus' , 'Pluto' , 'Mars'] } Resulting Array

@thw0rted
Copy link

No PRs have been merged for well over a year. Is there any reason to think this project isn't abandoned?

SReject added a commit to SReject/nedb that referenced this pull request Nov 11, 2021
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.

2 participants