Hi Algolia team,
I'm experiencing an issue where the attributesToRetrieve parameter is being ignored in search requests.
Current Behavior:
When I send a search request with:
javascript
{
query: "project manager",
attributesToRetrieve: "[\"id\", \"title\", \"skills\"]"
}
The API returns all document attributes instead of just the specified ones.
Expected Behavior:
Only the specified attributes (id, title, skills) should be returned.
Questions:
Should attributesToRetrieve accept string format with escaped JSON?
Is there a recommended way to handle this when the parameter comes as a string?
Is this the recommended approach, or is there a better solution?
Thanks for your help!