services/notes

Notes service using MongoDB. Performs operations related to the "Note" Model in MongoDB (Mongooge)
Description:
  • Notes service using MongoDB. Performs operations related to the "Note" Model in MongoDB (Mongooge)
Source:

Requires

Methods

(async, static) getAll() → {Object}

Description:
  • Uses mongoose to get all notes from MongoDB.
Source:
Throws:
Throws an error if there is an issue with the database.
Type
Error
Returns:
- An object containing all notes data.
Type
Object