Skip to content

Commit

Permalink
Added remove method to clear collection
Browse files Browse the repository at this point in the history
  • Loading branch information
globules-io committed Mar 5, 2020
1 parent a464221 commit 24dba2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions collection.mongogx.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ OGX.MongogxCollection = class{
}
return matched;
}

remove(){
this.data = {};
}

//find all documents matchin that query 1st
find(__query, __limit){
Expand Down

0 comments on commit 24dba2e

Please sign in to comment.