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
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...