MCPcopy Create free account
hub / github.com/Creatly/creatly-backend / NewModulesRepo

Function NewModulesRepo

internal/repository/modules_mongo.go:17–19  ·  view source on GitHub ↗
(db *mongo.Database)

Source from the content-addressed store, hash-verified

15}
16
17func NewModulesRepo(db *mongo.Database) *ModulesRepo {
18 return &ModulesRepo{db: db.Collection(modulesCollection)}
19}
20
21func (r *ModulesRepo) Create(ctx context.Context, module domain.Module) (primitive.ObjectID, error) {
22 res, err := r.db.InsertOne(ctx, module)

Callers 1

NewRepositoriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected