Skip to content

Commit

Permalink
Update gates.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dhowe authored Nov 19, 2023
1 parent ad3f774 commit ef39aea
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions docs/gates.md
Original file line number Diff line number Diff line change
@@ -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 } }


<table>
<thead><tr>
<th>Operator</th>
Expand Down Expand Up @@ -61,3 +42,22 @@
</tr>
</tbody>
</table>


**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 } }

0 comments on commit ef39aea

Please sign in to comment.