This commit is contained in:
2023-06-07 10:42:56 +02:00
parent 5fb2f8a312
commit b16d5152c7
3 changed files with 18 additions and 2 deletions

View File

@@ -1,5 +1,11 @@
package wmo
import (
"context"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/mongo"
)
func (c *Coll[TData]) DeleteOne(ctx context.Context, id EntityID) error {
_, err := c.coll.DeleteOne(ctx, bson.M{"_id": id})
if err != nil {