Skip to content

Commit feff5c8

Browse files
committed
chore: regenerate
1 parent b38c15a commit feff5c8

25 files changed

+593
-286
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Appwrite React Native SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-react-native.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-1.7.4-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.8.0-blue.svg?style=flat-square)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
88

9-
**This SDK is compatible with Appwrite server version 1.7.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-react-native/releases).**
9+
**This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-react-native/releases).**
1010

1111
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the React Native SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
1212

docs/examples/databases/create-document.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Client, Databases } from "react-native-appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5-
.setAdmin('') //
65
.setSession('') // The user session to authenticate with
76
.setKey('') //
87
.setJWT('<YOUR_JWT>'); // Your secret JSON Web Token

docs/examples/databases/decrement-document-attribute.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/examples/databases/increment-document-attribute.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/examples/databases/upsert-document.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ import { Client, Databases } from "react-native-appwrite";
22

33
const client = new Client()
44
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5-
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
5+
.setSession('') // The user session to authenticate with
6+
.setKey('') //
7+
.setJWT('<YOUR_JWT>'); // Your secret JSON Web Token
68

79
const databases = new Databases(client);
810

911
const result = await databases.upsertDocument(
1012
'<DATABASE_ID>', // databaseId
1113
'<COLLECTION_ID>', // collectionId
12-
'<DOCUMENT_ID>', // documentId
13-
{}, // data
14-
["read("any")"] // permissions (optional)
14+
'<DOCUMENT_ID>' // documentId
1515
);
1616

1717
console.log(result);

docs/examples/tables/create-row.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { Client, Tables } from "react-native-appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setSession('') // The user session to authenticate with
6+
.setKey('') //
7+
.setJWT('<YOUR_JWT>'); // Your secret JSON Web Token
8+
9+
const tables = new Tables(client);
10+
11+
const result = await tables.createRow(
12+
'<DATABASE_ID>', // databaseId
13+
'<TABLE_ID>', // tableId
14+
'<ROW_ID>', // rowId
15+
{}, // data
16+
["read("any")"] // permissions (optional)
17+
);
18+
19+
console.log(result);

docs/examples/tables/create-rows.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { Client, Tables } from "react-native-appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setAdmin('') //
6+
.setKey(''); //
7+
8+
const tables = new Tables(client);
9+
10+
const result = await tables.createRows(
11+
'<DATABASE_ID>', // databaseId
12+
'<TABLE_ID>', // tableId
13+
[] // rows
14+
);
15+
16+
console.log(result);

docs/examples/tables/delete-row.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Client, Tables } from "react-native-appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
6+
7+
const tables = new Tables(client);
8+
9+
const result = await tables.deleteRow(
10+
'<DATABASE_ID>', // databaseId
11+
'<TABLE_ID>', // tableId
12+
'<ROW_ID>' // rowId
13+
);
14+
15+
console.log(result);

docs/examples/tables/get-row.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { Client, Tables } from "react-native-appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
6+
7+
const tables = new Tables(client);
8+
9+
const result = await tables.getRow(
10+
'<DATABASE_ID>', // databaseId
11+
'<TABLE_ID>', // tableId
12+
'<ROW_ID>', // rowId
13+
[] // queries (optional)
14+
);
15+
16+
console.log(result);

docs/examples/tables/list-rows.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Client, Tables } from "react-native-appwrite";
2+
3+
const client = new Client()
4+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
6+
7+
const tables = new Tables(client);
8+
9+
const result = await tables.listRows(
10+
'<DATABASE_ID>', // databaseId
11+
'<TABLE_ID>', // tableId
12+
[] // queries (optional)
13+
);
14+
15+
console.log(result);

0 commit comments

Comments
 (0)