nedb icon indicating copy to clipboard operation
nedb copied to clipboard

Added position option to array push & pop

Open eliachiarucci opened this issue 5 years ago • 1 comments

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

eliachiarucci avatar Jul 20 '19 10:07 eliachiarucci

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

thw0rted avatar Jul 25 '19 12:07 thw0rted