Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.
This repository was 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

Description

@robinsonc

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions