Skip to content

Added position option to array push & pop#603

Open
eliachiarucci wants to merge 1 commit intolouischatriot:masterfrom
eliachiarucci:master
Open

Added position option to array push & pop#603
eliachiarucci wants to merge 1 commit intolouischatriot:masterfrom
eliachiarucci:master

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