Skip to content

Commit 10838ff

Browse files
fix: add query builder
1 parent 49a748e commit 10838ff

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

mod.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Client } from "./src/client.ts";
2+
import { Query } from "./src/query.ts";
23
import { AppwriteException } from "./src/exception.ts";
34
import { Account } from "./src/services/account.ts";
45
import { Avatars } from "./src/services/avatars.ts";
@@ -12,6 +13,7 @@ import { Users } from "./src/services/users.ts";
1213

1314
export {
1415
Client,
16+
Query,
1517
AppwriteException,
1618
Account,
1719
Avatars,
@@ -25,3 +27,4 @@ export {
2527
};
2628

2729
export type { Models } from "./src/models.d.ts";
30+
export type { QueryTypes, QueryTypesList } from "./src/query.ts";

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class Client {
88
endpoint: string = 'https://appwrite.io/v1';
99
headers: Payload = {
1010
'content-type': '',
11-
'x-sdk-version': 'appwrite:deno:2.0.0',
11+
'x-sdk-version': 'appwrite:deno:2.0.1',
1212
'X-Appwrite-Response-Format':'0.12.0',
1313
};
1414

src/exception.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ export class AppwriteException {
99
this.response = response;
1010
}
1111

12+
public toString(): String {
13+
return `${this.message} - ${this.code} - ${JSON.stringify(this.response)}`;
14+
}
1215
}

0 commit comments

Comments
 (0)