Versions in this module Expand all Collapse all v0 v0.0.8 Nov 23, 2022 Changes in this version + func Count[T any](ctx context.Context, collection *mongo.Collection, filterInput T) (int64, error) + func Create[T any](ctx context.Context, collection *mongo.Collection, data T) (*T, error) + func DeleteByID(ctx context.Context, collection *mongo.Collection, id primitive.ObjectID) error + func Find[T any, TFilter any](ctx context.Context, collection *mongo.Collection, f TFilter, ...) ([]T, error) + func GetByID[T any](ctx context.Context, collection *mongo.Collection, id primitive.ObjectID) (*T, error) + func Update[T any](ctx context.Context, collection *mongo.Collection, id primitive.ObjectID, in T) (*T, error)