hoodiehq / pouchdb-hoodie-api

:dog: Hoodie-like API for PouchDB
https://hoodiehq.github.io/pouchdb-hoodie-api
Apache License 2.0
44 stars 11 forks source link

Why add does not work like updateOrAdd ? #130

Open nicolidin opened 2 years ago

nicolidin commented 2 years ago

Hello,

It could be nice to have an idiomatic usage of add with the other method like updateOrAdd. I would simply be cool that hoodie API take the id property rather that _id of the payload. Or to simply have .add(id, payload) signature.

Thanks!:)