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
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- Increase by operators
I see appwrite have bunch of useful operators for querieng db. One more I would like to suggest is operators like increase the count of a int columns by 1,2.. ...