Skip to content

Commit 7deb9e9

Browse files
committed
Update Readme.md for regex options
1 parent a73a3c4 commit 7deb9e9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Readme.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ try{
7878

7979
// Like operator
8080
rsqlMongoDB('lastName=~do*');
81-
//=> { "lastName": { $regex: "do*" } }
81+
//=> { "lastName": { $regex: "do*", $options: "" } }
82+
83+
// Like operator with options
84+
rsqlMongoDB('lastName=~do*=si');
85+
//=> { "lastName": { $regex: "do*", $options: "si" } }
8286

8387
// Exists operator
8488
rsqlMongoDB('childs=exists=true');

0 commit comments

Comments
 (0)