
How should I set the header to send a filtering attribute and a specific value?

It wouldn't be a header. It would be a query string. See https://appwrite.io/docs/rest#query

In case, should I send my query string in the url of the consumer api? Is this?

Yes, Exactly as so
https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/documents?queries[]="equal("attribute", [value])"&queries[]="greaterThan("attribute", [value])"

I tried to use the indicated parameter, however I got the following error:


Mm maybe remove the "
before and after the query

queries[]=greaterThan("attribute", [value])

hum, ok.

It worked. Thank you very much, @Binyamin!

Yes my bad

I tried to fetch my attribute data, according to the query sent, but I got an error stating that the attribute is not valid.
{
message: 'Index not found: id_auth', code: 400, type: 'general_argument_invalid', version: '1.2.0'
}

OK, guy. I managed to resolve. I forgot to add the index in the database console.
Recommended threads
- Query.unselect([attrubutes])
Can we have Query.unselect([attrubutes]) like we have query.select() because i fetching my rows and i do need all the columns except that $updatedAt. Should i c...
- If a table is disabled, do its permissio...
If a table is disabled, do its permissions still take effect?
- Creating a relationship with nested obje...
{ "data": { "name": "DiDi", "type": "Software Development", "userJobs": [{ "$id": "68cbf1e2003612fb13ca", "j...
