-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
using with upsert #88
Comments
I haven't yet implemented support for upsert. No good reason other than me not using upsert in a project yet... but I definitely will implement it for collection-hooks. This serves as a good reminder :) |
Upsert is really useful, so this would be great to have. |
+1 |
1 similar comment
+1 |
+10 |
I have upsert done but need to write more tests! If anyone wanted to help me with the last mile, it's a great way to get your name into this package! It's all in the upsert branch |
+1 |
@matb33 Can you specify the set of tests that should be written, so the branch would be merge? I really need hooks for |
I'm confused. Does upsert currently not use any hooks, or does it just use the update and insert hooks in some funny way? #16 suggests that update would just be called with I'm also using upsert, so would be happy to write these tests if @matb33 could clarify exactly what it is we're fixing :) |
Pretty much upserts only trigger update hooks and not insert hooks. |
b69bfda suggests that a Is it ever possible to have a |
The introduction of explicit upsert hooks kind of makes things more complicated. I was expecting the implementation to trigger only the |
When I designed the That's why I introduced a As far as tests go, I don't quite recall what I felt was missing. Also I think the docs need to be updated for upsert. |
I am using upsert for adding documents and updating them. I got an error if I used before.upsert with the package, is it possible to do this?
The text was updated successfully, but these errors were encountered: