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

[Question] Is there a built in method like "updateOrCreate" #941

Open
someramsey opened this issue Jan 5, 2025 · 0 comments
Open

[Question] Is there a built in method like "updateOrCreate" #941

someramsey opened this issue Jan 5, 2025 · 0 comments

Comments

@someramsey
Copy link

I have been using lokijs for a while now, I couldn't find a built in way to find an entry, update it if it exists or otherwise create it. Yes this is possible by combining multiple calls but it would be nice if there was a function specifically made for that

@someramsey someramsey changed the title [Question] Is there a built in method for "update or create" [Question] Is there a built in method like "updateOrCreate" Jan 5, 2025
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