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 fe097e9 commit 2468283
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/gates.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,13 @@ The following operators assist in evaluating documents:

The $exists operator will look for values that do or do not exist:
```@{ secret: { $exists: true}
@{ secret: { $exists: false}```
@{ secret: { $exists: false}
```

The $eq and $ne operator will look for values match or do not match a value:
```@{ gender: { $ne: "male" } }
@{ name: { $eq: "kerri" } }```
@{ name: { $eq: "kerri" } }
```

The $in operator will look for equal values that match anything specified in an array:
`@{ rank: { $in: [ "warrior", "scholar", "sage" ] } }`
Expand Down

0 comments on commit 2468283

Please sign in to comment.