From 2468283a57c4eb425ff1e81efdab24c42147dd99 Mon Sep 17 00:00:00 2001 From: Daniel Howe Date: Mon, 20 Nov 2023 00:43:29 +0800 Subject: [PATCH] Update gates.md --- docs/gates.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/gates.md b/docs/gates.md index 3e8eb21..a474b8b 100644 --- a/docs/gates.md +++ b/docs/gates.md @@ -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" ] } }`