From 9033e663462ad4a6b28236058aef0d8bb8af9260 Mon Sep 17 00:00:00 2001 From: erich-e Date: Fri, 24 Sep 2021 00:35:53 +0000 Subject: [PATCH] update docs --- docs/filtering.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/filtering.rst b/docs/filtering.rst index 426021ff..be7e39ba 100644 --- a/docs/filtering.rst +++ b/docs/filtering.rst @@ -58,11 +58,11 @@ If you want to filter through relationships you can do that: When you filter on relationships use "any" operator for "to many" relationships and "has" operator for "to one" relationships. -There is a shortcut to achieve the same filter: +For filters where the nested operator is *eq* (as opposed to *ilike* in the above), a shortcut is available: .. sourcecode:: http - GET /persons?filter=[{"name":"computers__serial","op":"ilike","val":"%Amstrad%"}] HTTP/1.1 + GET /persons?filter=[{"name":"computers__serial","op":"any","val":"Amstrad"}] HTTP/1.1 Accept: application/vnd.api+json You can also use boolean combination of operations: @@ -72,8 +72,8 @@ You can also use boolean combination of operations: GET /persons?filter=[ { "name":"computers__serial", - "op":"ilike", - "val":"%Amstrad%" + "op":"any", + "val":"Amstrad" }, { "or": [