Handle both bson.D and bson.M on Find results

This commit is contained in:
George Suntres
2026-04-20 13:08:13 -04:00
parent 29144f54bd
commit 1547f8c736
4 changed files with 24 additions and 11 deletions

View File

@@ -158,7 +158,7 @@ func (c *MongoClient) GetCollection(database, name string) *mongo.Collection {
}
collection := db.Collection(name)
c.CreateIndexes(collection, cdef)
c.CreateViews(db, cdef)