Skip to content

Commit a321511

Browse files
committed
Upgrade CLI limit to 1.0 syntax
1 parent ce7c501 commit a321511

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

templates/cli/lib/commands/deploy.js.twig

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const awaitPools = {
3939
const { attributes: remoteAttributes } = await databasesListAttributes({
4040
databaseId,
4141
collectionId,
42-
limit: 100,
42+
queries: [ 'limit(100)' ],
4343
parseOutput: false
4444
});
4545

@@ -59,7 +59,7 @@ const awaitPools = {
5959
const { indexes: remoteIndexes } = await databasesListIndexes({
6060
databaseId,
6161
collectionId,
62-
limit: 100,
62+
queries: [ 'limit(100)' ],
6363
parseOutput: false
6464
});
6565

@@ -79,7 +79,7 @@ const awaitPools = {
7979
const { attributes: remoteAttributes } = await databasesListAttributes({
8080
databaseId,
8181
collectionId,
82-
limit: 100,
82+
queries: [ 'limit(100)' ],
8383
parseOutput: false
8484
});
8585

@@ -111,7 +111,7 @@ const awaitPools = {
111111
const { indexes: remoteIndexes } = await databasesListIndexes({
112112
databaseId,
113113
collectionId,
114-
limit: 100,
114+
queries: [ 'limit(100)' ],
115115
parseOutput: false
116116
});
117117

@@ -194,7 +194,7 @@ const deployFunction = async ({ functionId, all, yes } = {}) => {
194194
// TODO: Pagination?
195195
const { variables: remoteVariables } = await functionsListVariables({
196196
functionId: func['$id'],
197-
limit: 100,
197+
queries: [ 'limit(100)' ],
198198
parseOutput: false
199199
});
200200

@@ -468,7 +468,7 @@ const deployCollection = async ({ all, yes } = {}) => {
468468
const { indexes: remoteIndexes } = await databasesListIndexes({
469469
databaseId,
470470
collectionId: collection['$id'],
471-
limit: 100,
471+
queries: [ 'limit(100)' ],
472472
parseOutput: false
473473
});
474474

@@ -490,7 +490,7 @@ const deployCollection = async ({ all, yes } = {}) => {
490490
const { attributes: remoteAttributes } = await databasesListAttributes({
491491
databaseId,
492492
collectionId: collection['$id'],
493-
limit: 100,
493+
queries: [ 'limit(100)' ],
494494
parseOutput: false
495495
});
496496

templates/cli/lib/commands/init.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ const initCollection = async ({ all, databaseId } = {}) => {
170170
// TODO: Pagination?
171171
let response = await databasesListCollections({
172172
databaseId,
173-
limit: 100,
173+
queries: [ 'limit(100)' ],
174174
parseOutput: false
175175
})
176176

0 commit comments

Comments
 (0)