We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae63f89 commit d18c4f4Copy full SHA for d18c4f4
scripts/backup.mjs
@@ -23,6 +23,7 @@ const DOCUMENTS_PAGE_SIZE = 100;
23
24
const FILE_READ_DELAY = 1_000;
25
26
+
27
const client = new sdk.Client();
28
29
client.setEndpoint(process.env.APPWRITE_ENDPOINT)
@@ -111,7 +112,10 @@ await fs.mkdir("backup/databases", { recursive: true });
111
112
console.log(`Found ${total} databases!`);
113
for (const database of databasesList) {
114
const { collections, total } = await databases.listCollections(
- database.$id
115
+ database.$id,
116
+ [
117
+ sdk.Query.limit(5_000)
118
+ ]
119
);
120
console.log(`Found ${total} collections id ${database.$id}!`);
121
for (const collection of collections) {
0 commit comments