Skip to content

Commit

Permalink
added query method
Browse files Browse the repository at this point in the history
  • Loading branch information
Danushka96 committed Dec 1, 2024
1 parent 53cde0c commit 12b6c73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mongo_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,3 +288,7 @@ func (r *MongoRepository[T]) ExistsByFilters(filters map[string]interface{}) (bo
count, err := r.CountByFilters(filters)
return count > 0, err
}

func (r *MongoRepository[T]) Query() *mongo.Collection {
return r.collection
}

0 comments on commit 12b6c73

Please sign in to comment.