From ab5347534d58c3836d93481d73a212d04f63e3e9 Mon Sep 17 00:00:00 2001 From: Eduard Lupacescu Date: Tue, 2 Jul 2024 11:13:01 +0300 Subject: [PATCH] fix: docs --- docs-v2/content/en/search/advanced-filters.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs-v2/content/en/search/advanced-filters.md b/docs-v2/content/en/search/advanced-filters.md index 73604e0c..d76b992c 100644 --- a/docs-v2/content/en/search/advanced-filters.md +++ b/docs-v2/content/en/search/advanced-filters.md @@ -101,7 +101,7 @@ const filters = [ } ]; -const response = await axios.post(`api/restify/posts/apply-restify-advanced-filters`, filters); +const response = await axios.post(`api/restify/posts/apply-restify-advanced-filters`, { filters }); ``` @@ -475,7 +475,7 @@ const filters = [ } ]; -const response = await axios.post(`api/restify/posts/apply-restify-advanced-filters`, filters); +const response = await axios.post(`api/restify/posts/apply-restify-advanced-filters`, {filters}); ``` In this payload, besides the standard key and value, we are also sending operator and column. The operator specifies the type of SQL operation, and the column specifies the database column to filter.