
Hi, I follow a tutorial here https://www.youtube.com/watch?v=YSUmzHH_OMg but cannot connect to my personal database using this method:
const {documents, total} = await database.listDocuments(databaseId,tableId);
The listDocuments method is crossed over and deprecated, in fact all methods in that database object are deprecated. Database is initiated by:
import {Client, Databases} from 'react-native-appwrite'; import { Platform } from 'react-native';
const client = new Client();
client .setEndpoint('https://fra.cloud.appwrite.io/v1') .setProject(myProjectId);
switch (Platform.OS) { case 'ios': client.setPlatform('com.example.test'); break; case 'android': client.setPlatform('com.example.test'); break; default: break; }
const database = new Databases(client);
export {client, database};
When I start expo, the table row is not returned into the app

by the way I keep seeing tutorial mentioning collection, but I don't have a collection, only table, I assume they are the same, still, quite confusing

The changes were made a few days ago

Does it also requite some kind of authentication for this call now? It now seems to try to connect but I got 401 Unauthorized back.
if possible can you point me to the latest documentation for React Native SDK? I find this severly lacking.
Recommended threads
- Migration issues
Hey, quick question — I’m currently running a project on an Appwrite Pro account, but I recently got access to the GitHub Student Pack. Is there a way to migrat...
- getFileViewURL in react native not retur...
Hi everyone, im trying to get the file url from storage but when i use the getFileViewURL method i get a url that looks like this: "https://fra.cloud.appwrite....
- Cant retrieve data
i cant retrieve my data
