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
- Websocket error Realtime
Hi peeps, I am trying to create realtime updates and I am having websocket error Code is below this msg
- {"code": 1008, "message": "Invalid Origi...
Nothing has changed in my application or console settings so I'm curious as to what I need to do to fix this. I already have the client registered so I'm not en...
- React Native/iOS platform integrations h...
Anyone else have this issue where platform identifiers have been lost/wiped and no option/field available to update them in the console?