Skip to content

Commit 2fd45f5

Browse files
authored
Merge pull request #71 from appwrite/dev
Add time between queries
2 parents cdf0f36 + 7218be2 commit 2fd45f5

17 files changed

+191
-35
lines changed

docs/examples/account/update-prefs.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ const client = new Client()
77
const account = new Account(client);
88

99
const result = await account.updatePrefs({
10-
prefs: {}
10+
prefs: {
11+
"language": "en",
12+
"timezone": "UTC",
13+
"darkTheme": true
14+
}
1115
});
1216

1317
console.log(result);

docs/examples/databases/create-document.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ const result = await databases.createDocument({
1010
databaseId: '<DATABASE_ID>',
1111
collectionId: '<COLLECTION_ID>',
1212
documentId: '<DOCUMENT_ID>',
13-
data: {},
13+
data: {
14+
"username": "walter.obrien",
15+
"email": "[email protected]",
16+
"fullName": "Walter O'Brien",
17+
"age": 30,
18+
"isAdmin": false
19+
},
1420
permissions: ["read("any")"] // optional
1521
});
1622

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const result = await databases.decrementDocumentAttribute({
1111
collectionId: '<COLLECTION_ID>',
1212
documentId: '<DOCUMENT_ID>',
1313
attribute: '',
14-
value: null, // optional
15-
min: null // optional
14+
value: 0, // optional
15+
min: 0 // optional
1616
});
1717

1818
console.log(result);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const result = await databases.incrementDocumentAttribute({
1111
collectionId: '<COLLECTION_ID>',
1212
documentId: '<DOCUMENT_ID>',
1313
attribute: '',
14-
value: null, // optional
15-
max: null // optional
14+
value: 0, // optional
15+
max: 0 // optional
1616
});
1717

1818
console.log(result);

docs/examples/storage/create-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const storage = new Storage(client);
99
const result = await storage.createFile({
1010
bucketId: '<BUCKET_ID>',
1111
fileId: '<FILE_ID>',
12-
file: await pickSingle(),
12+
file: InputFile.fromPath('/path/to/file', 'filename'),
1313
permissions: ["read("any")"] // optional
1414
});
1515

docs/examples/tablesdb/create-row.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ const result = await tablesDB.createRow({
1010
databaseId: '<DATABASE_ID>',
1111
tableId: '<TABLE_ID>',
1212
rowId: '<ROW_ID>',
13-
data: {},
13+
data: {
14+
"username": "walter.obrien",
15+
"email": "[email protected]",
16+
"fullName": "Walter O'Brien",
17+
"age": 30,
18+
"isAdmin": false
19+
},
1420
permissions: ["read("any")"] // optional
1521
});
1622

docs/examples/tablesdb/decrement-row-column.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const result = await tablesDB.decrementRowColumn({
1111
tableId: '<TABLE_ID>',
1212
rowId: '<ROW_ID>',
1313
column: '',
14-
value: null, // optional
15-
min: null // optional
14+
value: 0, // optional
15+
min: 0 // optional
1616
});
1717

1818
console.log(result);

docs/examples/tablesdb/increment-row-column.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const result = await tablesDB.incrementRowColumn({
1111
tableId: '<TABLE_ID>',
1212
rowId: '<ROW_ID>',
1313
column: '',
14-
value: null, // optional
15-
max: null // optional
14+
value: 0, // optional
15+
max: 0 // optional
1616
});
1717

1818
console.log(result);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "react-native-appwrite",
33
"homepage": "https://appwrite.io/support",
44
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
5-
"version": "0.12.0",
5+
"version": "0.13.0",
66
"license": "BSD-3-Clause",
77
"main": "dist/cjs/sdk.js",
88
"exports": {

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class Client {
115115
'x-sdk-name': 'React Native',
116116
'x-sdk-platform': 'client',
117117
'x-sdk-language': 'reactnative',
118-
'x-sdk-version': '0.12.0',
118+
'x-sdk-version': '0.13.0',
119119
'X-Appwrite-Response-Format': '1.8.0',
120120
};
121121

0 commit comments

Comments
 (0)