From 90a68eb582512308b2d9dd668085fe9fc9de5bac Mon Sep 17 00:00:00 2001 From: Gildas Garcia <1122076+djhi@users.noreply.github.com> Date: Mon, 23 Jan 2023 15:34:09 +0100 Subject: [PATCH] Document operators --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 10e3871..3cf2871 100644 --- a/README.md +++ b/README.md @@ -292,6 +292,22 @@ Operators are specified as suffixes on each filtered field. For instance, applyi GET /books?filter={"author_q":['Gibson']} // return books where author includes 'Gibson' not considering the other fields +- `_lt`: check for items that has a value lower than the provided value + + GET /books?filter={"price_lte":100} // return books that have a price lower that 100 + +- `_lte`: check for items that has a value lower or equal than the provided value + + GET /books?filter={"price_lte":100} // return books that have a price lower or equal to 100 + +- `_gt`: check for items that has a value greater than the provided value + + GET /books?filter={"price_gte":100} // return books that have a price greater that 100 + +- `_gte`: check for items that has a value greater or equal than the provided value + + GET /books?filter={"price_gte":100} // return books that have a price greater or equal to 100 + ## Usage and Configuration ```js