Class: NotesCollection

NotesCollection()

Notes Collection that allows CRUD operations for any model

Constructor

new NotesCollection()

Source:

Methods

(async) delete(_id)

Deletes Note by ID

Parameters:
Name Type Description
_id ID

ID of the note to be deleted

Source:

(async) get(category, category)

Finds list of notes

Parameters:
Name Type Description
category category

Category of notes proper category

category '{}'

Empty object if no category specified

Source:

(async) post(command)

Saves notes to database

Parameters:
Name Type Description
command command

Command object from Input

Source: