diff --git a/client/src/collection.js b/client/src/collection.js index 373c76b0ab..956117f982 100644 --- a/client/src/collection.js +++ b/client/src/collection.js @@ -164,6 +164,7 @@ class Collection { * orderBy?: string|null, * urlRoot?: string, * url?: string, + * maxSize?: number, * }} [options] Options. */ constructor(models, options) { @@ -173,6 +174,10 @@ class Collection { this.model = options.model; } + if (options.maxSize !== undefined) { + this.maxSize = options.maxSize; + } + this._reset(); if (options.entityType) {