Hey guys, sorry for the delay on testing this furt...
# community-help
s
Hey guys, sorry for the delay on testing this further and providing feedback. We have now done some more testing and have the following:
Copy code
let searchParameters = {
    "q": "",
    "query_by": "name",
    "include_fields": "$brands1(name) as brands, $userFood1(count, userId) as userFood"
  };
  
  let results = await client.collections("food1").documents().search(searchParameters);