Back

custom collection id and sdk can't find the collection by id

  • 0
  • Databases
  • Flutter
  • Web
antonio84
25 Aug, 2023, 10:27

The custom collection id is "members" and when I call it with sdk it doesn't work.

TL;DR
The user is having trouble finding a custom collection using the SDK. They are also experiencing an authentication problem when trying to query the database within the session. A suggested solution is to give permissions to the collection and use the `listDocuments()` function to fetch the documents.
antonio84
25 Aug, 2023, 10:28

the name is equal to id, is it a problem?

antonio84
25 Aug, 2023, 10:47

I give all the permissions to logged user

antonio84
25 Aug, 2023, 12:26

I think it is an auth problem, after authentication how can I query the db within that session?

antonio84
25 Aug, 2023, 12:27

ok understood

antonio84
25 Aug, 2023, 12:35

I am passing the authenticated client object and it doesn't work

antonio84
25 Aug, 2023, 12:46

How can I make a query after a session is created?

joeyouss
25 Aug, 2023, 14:01

Hi, please don't cross post : )

Drake
25 Aug, 2023, 17:01
jimmyurl
27 Aug, 2023, 07:11

sorry I've deleted it

Guille
27 Aug, 2023, 16:27

You need to give permission to the collection as well

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more