MCPcopy Create free account
hub / github.com/devinterface/startersaas-go-api / FindBy

Method FindBy

services/user.service.go:104–108  ·  view source on GitHub ↗

FindBy function

(q bson.M)

Source from the content-addressed store, hash-verified

102
103// FindBy function
104func (userService *UserService) FindBy(q bson.M) (users []models.User, err error) {
105 users = []models.User{}
106 err = userService.getCollection().SimpleFind(&users, q)
107 return users, err
108}
109
110// Delete function
111func (userService *UserService) Delete(id interface{}, accountID primitive.ObjectID) (success bool, err error) {

Callers 5

IndexMethod · 0.45
CreateMethod · 0.45
IndexMethod · 0.45

Calls 1

getCollectionMethod · 0.95

Tested by

no test coverage detected