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

hoodie.database(targetDb).add() should allow to pass _id and should not pass through _rev #31

Open
espy opened this issue Jan 20, 2014 · 1 comment

Comments

@espy
Copy link
Contributor

espy commented Jan 20, 2014

See espy/hoodie-plugin-tutorial#9

Currently, when you pass a Hoodie object back to database().add() to be added as a new object in a different database, _id and _rev are passed through, which causes a { error: 'conflict', reason: 'Document update conflict.' }.

database().add() should allow the forcing of an _id (reported as not working), but always filter out _rev.

@steve21124
Copy link

Also error "{ error: 'conflict', reason: 'Document update conflict.' }." when updating existing object on different database like "global-database"

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

No branches or pull requests

3 participants