From 5300f932d5890bfa810b886f51af9f3a2db92f26 Mon Sep 17 00:00:00 2001 From: MrBounty Date: Wed, 8 Jan 2025 23:53:56 +0100 Subject: [PATCH] Update README --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dcae87f..4893ec8 100644 --- a/README.md +++ b/README.md @@ -52,9 +52,14 @@ The main action is `GRAB`, this will parse files and return data. GRAB User {name = 'Bob' AND (age > 30 OR age < 10)} ``` +Can use [] before the filter to tell what to return. +```js +GRAB User [id, email] {name = 'Bob' AND (age > 30 OR age < 10)} +``` + Here a preview to how to use relationship. ```js -GRAB User {best_friend = {name = 'Bob'}} +GRAB User {best_friend IN {name = 'Bob'}} ``` GRAB queries return a list of JSON objects with the data inside, e.g: