Versions in this module Expand all Collapse all v0 v0.1.0 Sep 18, 2023 Changes in this version + type IMongoStore interface + Create func(ctx context.Context, obj T) error + Delete func(ctx context.Context, filter interface{}) error + FindBy func(ctx context.Context, filter interface{}) (*[]T, error) + FindOneBy func(ctx context.Context, filter interface{}) (*T, error) + Get func(ctx context.Context) (*[]T, error) + func New(ctx context.Context, uri string) (IMongoStore[T], error) + type MongoStore struct + func (s MongoStore[T]) Create(ctx context.Context, obj T) error + func (s MongoStore[T]) Delete(ctx context.Context, filter interface{}) error + func (s MongoStore[T]) FindBy(ctx context.Context, filter interface{}) (*[]T, error) + func (s MongoStore[T]) FindOneBy(ctx context.Context, filter interface{}) (*T, error) + func (s MongoStore[T]) Get(ctx context.Context) (*[]T, error) + func (s MongoStore[T]) Update(ctx context.Context, filter interface{}, obj T) error + type StoreFilter = bson.M