Rank 5: Hypervisor
Flutter: Query Example in Documention is not accurate as query function data type is dynamic
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 5: Hypervisor
Flutter: Query Example in Documention is not accurate as query function data type is dynamic
Rank 5: Hypervisor
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` ?Rank 5: Hypervisor
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...
Rank 5: Hypervisor
Rank 5: Hypervisor
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?
Rank 5: Hypervisor
@safwan this one...
Rank 5: Hypervisor
I tried to fetch list of documents
okay what are you trying to query?
Admin
That's weird. I never run into that error before. What is appWrite?
Rank 5: Hypervisor
just normal class containing static function and final var
Rank 5: Hypervisor
Error is coming from analyser
Rank 5: Hypervisor
if you enable analyser you will also get... I am using very good analyser
Admin
Interesting...I just use the default dart/flutter analyzer
Admin
Feel free to create an issue
Rank 5: Hypervisor
yap yap juts going to create it
Rank 5: Hypervisor
Rank 5: Hypervisor
created this bug...
Rank 5: Hypervisor
btw Steven could you pls help with this why its failing ? I don't understand the reason behind it...
Admin
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
Admin
Attribute refers to attribute, not index
Rank 5: Hypervisor
I have redploy the business collection now it's avl
Rank 5: Hypervisor
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
Admin
Indexes are automatically used based on the queries you pass
Rank 5: Hypervisor
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 🙏