I can only think of two ways to achieve this right...
# community-help
h
I can only think of two ways to achieve this right now • The simple way - Query
development
like:
Copy code
{
  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
Copy code
country:[`India`] && company_name:[`Acme Corp 6`]
otherwise:
Copy code
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:
Copy code
(country:[`India`] && company_name:[`Acme Corp 6`]) || (country:[`India`] && company_name:[`Acme Corp 6`] && $development(workspace_id: 'a'))
1