mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
17 lines
474 B
Markdown
17 lines
474 B
Markdown
import { Client, Databases } from "react-native-appwrite";
|
|
|
|
const client = new Client()
|
|
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
|
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
|
|
|
|
const databases = new Databases(client);
|
|
|
|
const result = await databases.getDocument(
|
|
'<DATABASE_ID>', // databaseId
|
|
'<COLLECTION_ID>', // collectionId
|
|
'<DOCUMENT_ID>', // documentId
|
|
[] // queries (optional)
|
|
);
|
|
|
|
console.log(result);
|