What does this error means ??
final businessDatabyIDResponse = await _db.listDocuments( databaseId: AppwriteConstants.databaseID, collectionId: AppwriteConstants.businessInfoCollections, queries: [Query.equal('business_owner_id', myBusinessDetailsId)], );
my code
Its resolved now i need to write myBusinessDetailsId like [myBusinessDetailsId]
Not working
what is not working ?
final businessDatabyIDResponse = await _db.listDocuments( databaseId: AppwriteConstants.databaseID, collectionId: AppwriteConstants.businessInfoCollections, queries: [Query.equal('business_owner_id', myBusinessDetailsId)], );
This code
Alright make sure you have setup the permissions correctly for the collection in appwrite console
im trying to fetch data where business_owner_id = 'someownerid from auth users'
Is it correct ?
Yes this means users have the access
can you pls send the error message
Its in the subject 400 generak_argument_invalid, index not found:business_owner_id
You are using appwrite cloud right ?
yes
ok so i think you need to create an index go to the index tab and create an index for business_owner_id field
why ?
In order to do queries you need to create index
You can learn more about them here https://appwrite.io/docs/databases#indexes
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...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support š I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...