Harpreet Sangar
11/11/2024, 10:16 AMdevelopment
like:
{
q: *,
filter_by: workspace_id: x,
per_page: 0
}
and the check if the found
count is 0 or not. If 0, your query will be
country:[`India`] && company_name:[`Acme Corp 6`]
otherwise:
country:[`India`] && company_name:[`Acme Corp 6`] && $development(workspace_id: 'a')
• If you wish to achieve the result with a single query, you'll have to send:
(country:[`India`] && company_name:[`Acme Corp 6`]) || (country:[`India`] && company_name:[`Acme Corp 6`] && $development(workspace_id: 'a'))