js doc composer for interop with visual paradigm
This commit is contained in:
+3
-3
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user