Kamva / mgm

Mongo Go Models (mgm) is a fast and simple MongoDB ODM for Go (based on official Mongo Go Driver)
Apache License 2.0
754 stars 63 forks source link

How to convert this to mgm code: db.myData.find({ name: /Ape/ }) #78

Closed elvis-hp closed 1 year ago

elvis-hp commented 1 year ago

How to convert this to mgm code: db.myData.find({ name: /Ape/ }) thank you so much.

elvis-hp commented 1 year ago

filter = bson.M{"name": bson.M{operator.Regex: query, "$options": "i"}}