Skip to content

Commit

Permalink
Create Mingo.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
dhowe authored Nov 19, 2023
1 parent f9d9de2 commit 5800238
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Mingo.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#### 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"}

0 comments on commit 5800238

Please sign in to comment.