From ef39aeadc2a1aaaca9d40c772d2db763bb61c931 Mon Sep 17 00:00:00 2001 From: Daniel Howe Date: Mon, 20 Nov 2023 00:03:01 +0800 Subject: [PATCH] Update gates.md --- docs/gates.md | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/gates.md b/docs/gates.md index 8a99a43..774a891 100644 --- a/docs/gates.md +++ b/docs/gates.md @@ -1,22 +1,3 @@ -**Search and return only certain fields** - -**Search by regular expression (use the slash or quote marks as a delimiter). -**@{$name: {$regex: /^M.*/}} - -**Case insensitive: -**@{$name: {$regex: /^jan.*/, $options: "i"}} - -**Find by elements in array -**This matches documents that contain all of these array elements: -@{$skills: {$all: }} - -**Match on any element in the array: -**@{$skills: "negotiation"} - -**Match on inequality -@{ $strength: { $gt: 18 } } - - @@ -61,3 +42,22 @@
Operator
+ + +**Search and return only certain fields** + +**Search by regular expression (use the slash or quote marks as a delimiter). +**@{$name: {$regex: /^M.*/}} + +**Case insensitive: +**@{$name: {$regex: /^jan.*/, $options: "i"}} + +**Find by elements in array +**This matches documents that contain all of these array elements: +@{$skills: {$all: }} + +**Match on any element in the array: +**@{$skills: "negotiation"} + +**Match on inequality +@{ $strength: { $gt: 18 } }