From ce0a887e56cd272063f2e3df55fb32b47c6b0eab Mon Sep 17 00:00:00 2001 From: baxiry Date: Sun, 7 Jul 2024 01:07:05 +0300 Subject: [PATCH] document order by & reverse --- static/shell.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/shell.html b/static/shell.html index 359e853..4a2d275 100644 --- a/static/shell.html +++ b/static/shell.html @@ -61,6 +61,8 @@

examples

select objects that match all conditions

{action:"findMany", collection:"users", match:{ $and:[name:{$eq:"akram", age:$gt:13}]}} +

order by & reverse or DISC :

+ {action:"findMany", collection:"users", orderBy:"name", reverse:1}

updateById

{action:"updateById", collection:"test", _id:3, data:{name:"hosam", age:10}}