
Hi, tell me how I can do the following, I need each user to have their own data table, I don't understand how this can be implemented in this interface. I created a user in auth, after which what should I do to get the result? And after that, what should my request look like? Something like contacting the user, and choosing a table with data?

You could create the collections called users
to store the user specific table i.e. documents with some attributes.
const users = new Users(client);
const dbs = new Databases(client);
const usersCollection = await dbs.createCollectio("<Your db Id>", ID.unique(), "users", [Permission.read(Role.users()), Permission.write(Role.users())]);
async function createUser(email, password, name){
const user1 = await user.create(ID.unique(), "email", undefined, "password", "name") ;
await dbs.createDocument("<YOUR DB ID>", usersCollection.$id, ID.unique(), {email, name}, [Permission.read(Role.user(user1.$id)), Permission.write(Role.user(user1.$id))]);
}
In the above code example. Any authenticated user can access the user collection but can't access other user documents

thanks, but apparently you used an api here, but is it possible to do something similar with restApi? because there is no api for react native.

Yeah you could do the similar logic in restApi as well. Remember to include the permissions

Great! Thank you very much

What's your problem with using the web sdk?

Perhaps) I'm just learning react native, and thought that a special sdk was needed for it. Thanks

Since react native is JavaScript, you can usually use any library that works with JavaScript/react

You'll sometimes run into problems though, like with file storage or oauth in Appwrite with react native
Recommended threads
- Error importing data after server migrat...
Hello, I recently purchased a new web server and when trying to migrate my data from the old server to the new (both self-hosted instances of appwrite on coolif...
- REST API does not work for queries
``` curl -X GET "https://cloud.appwrite.io/v1/databases/<db-id>/collections/<c-id>/documents" -H "X-Appwrite-Project: <project-id>" -H "X-Appwrite-Key: <key>"...
- deleteDocments is not a function
Hello. At the bottom of my project's console, in the footer, I have `Version 1.7.4`. However, when I run my server side function, I am told that `databases.dele...
