B4J Question How to query MongoDB with "like" ?

ajk

Active Member
Licensed User
Longtime User
How to correctly use in MONGO database LIKE condition? Regex?
Unfortunately code below do not work...

Private mongo As MongoClient
Private db As MongoDatabase
KOL = db.GetCollection("bx")
Dim l As Long = KOL.Delete (CreateMap("gen": "/m/"))
 
Last edited:

ajk

Active Member
Licensed User
Longtime User
So let me answer my question...
Dim l As Long = KOL.Delete(CreateMap("gen" : CreateMap( "$regex" : "m")))
 
Upvote 0
Top