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
- HTTP Error 500 ''
Hello to everyone, I'm a Flutter developer and actually I'm developing an app using Appwrite.. during my tests and also massive ones I've noticed something we...
- Invalid type for attribute 'email': emai...
I'm using the node-appwrite SDK to create a table, the column payload looks like this: ```json [{"key":"email","type":"email","required":true, "size": 512}] ``...
- Auth not working
guys my appwrite auth isnt working? oauth works (Sign in with google n discord) i have 2 websites deployed where do i get help when i do sign in with email and ...