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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.
- Seed db
hello there... is this correct way to seed appwrite