I tried to query:
bson.M{"name": bson.M{"$regex": bson.RegEx{Pattern: "sophia", Options: "i"}}
but, it also query out which part matched with "sophia".
I only want to query out the items which case insensitive.
I tried to query:
bson.M{"name": bson.M{"$regex": bson.RegEx{Pattern: "sophia", Options: "i"}}
but, it also query out which part matched with "sophia".
I only want to query out the items which case insensitive.