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

$replace with new documents? #245

Open
cwewells opened this issue Dec 21, 2018 · 0 comments
Open

$replace with new documents? #245

cwewells opened this issue Dec 21, 2018 · 0 comments

Comments

@cwewells
Copy link

I've used the $replace operator for new documents (as opposed to searching if they exist) and there seems to be not problem with that. Is this by design or should I check if a document exists (by primary key) and then $inserting if not yet in collection?

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

No branches or pull requests

1 participant