Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

findOneAndUpdate to add a new element to the collection #28

Open
robinsonc opened this issue Sep 21, 2017 · 0 comments
Open

findOneAndUpdate to add a new element to the collection #28

robinsonc opened this issue Sep 21, 2017 · 0 comments
Assignees

Comments

@robinsonc
Copy link

controller.storage.user_session.save({...});
findOneAndUpdate this method matches the query and updated the values. How do I add a new element to the already existing collection.
NOTE: user_session is a custom table.

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

No branches or pull requests

3 participants