`Flutter:` Query Example in Documention is `not accurate` as query function data type is `dynamic`
- 0
- Databases
Flutter: Query Example in Documention is not accurate as query function data type is dynamic
static equal(String attribute, dynamic value) =>
_addQuery(attribute, 'equal', value);``` if I get correctly as per documentation, `attribute` refers to `index` only right? so as in the screenshot it can be seen there is one index I created called `idx_business_user_id_business_name` so I should pass the index name right in place on `attribute` ?
getting error, txt
"message" -> "Query not valid: Attribute not found in schema: idx_business_user_id" but index does exist in the dashboard however, index created from dashboard shows failed tagged...
I did quick search and and few asked about it earlier but, that didn't help
I'm sorry but what exactly is the issue you're facing?
@safwan this one...
I tried to fetch list of documents
okay what are you trying to query?
That's weird. I never run into that error before. What is appWrite?
just normal class containing static function and final var
Error is coming from analyser
if you enable analyser you will also get... I am using very good analyser
Interesting...I just use the default dart/flutter analyzer
Feel free to create an issue
yap yap juts going to create it
created this bug...
btw Steven could you pls help with this why its failing ? I don't understand the reason behind it...
If you have a failed index, you'll need to check the docker logs for the appwrite-worker-databases container to see why it failed
Attribute refers to attribute, not index
I have redploy the business collection now it's avl
oh didn't didn't knew... so how do I query with index or we can't and just that index are for appwrite to query
Indexes are automatically used based on the queries you pass
oh got it, thank you I guess that lead me some confusion... thank you again Steven I don't know how many times I said and will keep saying π
Recommended threads
- How to bypass the rate limit on the back...
Once a month my app has a ton of usage and I always run into the Too many requests 429 error. I am trying to optimize the queues and jobs to manage that, but a...
- [SOLVED] Appwrite Cloud and FRA cloud se...
Can anyone estimate how long this will take to resolve? I am checking status here https://status.appwrite.online/
- How to use Operator.arrayAppend on a rel...
Hi, is it possible to use any operator on a relationship column? I have a One to Many relationship column on a table and I would like to add entries to the colu...