diff --git a/apps/web/src/views/docs.ejs b/apps/web/src/views/docs.ejs index 6ef6619..4d41cfa 100644 --- a/apps/web/src/views/docs.ejs +++ b/apps/web/src/views/docs.ejs @@ -499,9 +499,11 @@ Content-Type: application/json // $or - any condition must match { "$or": [{ "status": 200 }, { "status": 204 }] } -// $not - invert a condition -{ "$not": { "status": 500 } } +// $not - invert (object or array) +{ "$not": { "status": 500 } } +{ "$not": [{ "status": { "$ge": 500 } }, { "$time": { "$gt": 3000 } }] } +
All three accept both objects and arrays. An array is always implicit $and (all must match). A bare array as the entire query works too: [{ "status": 200 }, { "body": { "$co": "ok" } }]
These nest freely. You can put $or inside $and, $and inside $or, or go as deep as you want: