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 d74a43f commit 4f3a6a6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/gates.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## RiScript Gates (with Mingo-style operators)

### Comparison

The following operators can be used in queries to compare values:
Expand All @@ -19,14 +21,15 @@ The following operators can logically compare multiple queries.
$nor: Returns documents where both queries fail to match
$not: Returns documents where the query does not match

### valuation
### Evaluation

The following operators assist in evaluating documents.

$regex: Allows the use of regular expressions when evaluating field values
$text: Performs a text search
$where: Uses a JavaScript expression to match documents

### Operators

<table>
<thead><tr>
Expand Down Expand Up @@ -69,7 +72,7 @@ The following operators assist in evaluating documents.
</table>


**Search and return only certain fields**
### Examples

**Search by regular expression (use the slash or quote marks as a delimiter).
**@{$name: {$regex: /^M.*/}}
Expand Down

0 comments on commit 4f3a6a6

Please sign in to comment.