js doc composer for interop with visual paradigm

This commit is contained in:
2024-11-27 09:05:37 +02:00
parent c2245d92b3
commit 54b8941f3c
9 changed files with 186 additions and 30 deletions
+3 -3
View File
@@ -30,7 +30,7 @@ class Db {
* Inserts a record in a db collection
* @param {string} collection The name of the collection
* @param {Object} value The object to insert
* @returns Inserted Id
* @returns {ObjectId} Inserted Id
*/
async create(collection, value){
try {
@@ -45,7 +45,7 @@ class Db {
* @param {string} collection The name of the collection
* @param {Object} key Record identifier
* @param {Object} projection What data to take from the object
* @returns A record
* @returns {Object} A record
*/
async get(collection, key, projection){
try {
@@ -59,7 +59,7 @@ class Db {
* Performs a database query
* @param {string} collection Collection name
* @param {Object} query A mongo db query
* @returns Array of records
* @returns {Object[]} Array of records
*/
async list(collection, query){
try {