Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Conversation

benco1967
Copy link
Contributor

Some paths with arrays don't work as they should

…on index or '-', this last one means to add to the end of the array
rfc6901 says that add op is not possible without position index or '-'
added items must be contiguous, if we add a item in the first position
and in the third position, we can't do it in only one $push => throws
error
add op can't mixe position index and '-', as we don't know the length of
the array where the itmes will be pushed, we can't mixed index positions
and '-' position (added to end) => throws error
~0 <=> ~ and ~1 <=> / were forgotten
no more dependency to jsonpath-to-dot
@imlucas imlucas merged commit 37fa3f8 into mongodb-js:master Jan 14, 2020
@imlucas
Copy link
Contributor

imlucas commented Jan 14, 2020

📦 jsonpatch-to-mongodb@1.0.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants