Rank 1: Thread
How should I set the header to send a filtering attribute and a specific value?
Votes
0
Replies
12
Participants
Unknown
Messages
13
Rank 1: Thread
How should I set the header to send a filtering attribute and a specific value?
Admin
It wouldn't be a header. It would be a query string. See https://appwrite.io/docs/rest#query
Rank 1: Thread
In case, should I send my query string in the url of the consumer api? Is this?
Rank 7: Quantum Computer
Yes, Exactly as so
https://cloud.appwrite.io/v1/databases/{databaseId}/collections/{collectionId}/documents?queries[]="equal("attribute", [value])"&queries[]="greaterThan("attribute", [value])"Rank 1: Thread
I tried to use the indicated parameter, however I got the following error:
Rank 1: Thread
Rank 7: Quantum Computer
Mm maybe remove the " before and after the query
Rank 7: Quantum Computer
queries[]=greaterThan("attribute", [value])
Rank 1: Thread
hum, ok.
Rank 1: Thread
It worked. Thank you very much, @Binyamin!
Rank 7: Quantum Computer
Yes my bad
Rank 1: Thread
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'
}
Rank 1: Thread
OK, guy. I managed to resolve. I forgot to add the index in the database console.