@highoutput/repository
Advanced tools
Comparing version 0.1.5 to 0.2.0
@@ -20,2 +20,3 @@ import { Model, Document, FilterQuery, Connection, Schema } from 'mongoose'; | ||
findOne(filter: FilterQuery<TEntity>): Promise<TEntity>; | ||
deleteOne(filter: FilterQuery<TEntity>): Promise<void>; | ||
deleteById(id: ObjectId): Promise<void>; | ||
@@ -22,0 +23,0 @@ deleteMany(filter: FilterQuery<TEntity>): Promise<void>; |
@@ -86,2 +86,5 @@ "use strict"; | ||
} | ||
async deleteOne(filter) { | ||
await this._model.deleteOne(serializeFilter(filter)); | ||
} | ||
async deleteById(id) { | ||
@@ -88,0 +91,0 @@ await this._model.deleteOne({ _id: id.toBuffer() }); |
{ | ||
"name": "@highoutput/repository", | ||
"version": "0.1.5", | ||
"version": "0.2.0", | ||
"description": "Repository Class Implementation", | ||
@@ -52,3 +52,3 @@ "author": "High Output Ventures", | ||
}, | ||
"gitHead": "e8eb9e54b5fb409d60e6ada4371b5ddc58171175" | ||
"gitHead": "ad98c10786f04903cb1e00ccb0090db0627bf3ef" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
13311
145