|
@@ -82,6 +82,17 @@ class Drive extends Provider {
|
|
|
fields: DRIVE_FILES_FIELDS,
|
|
|
pageToken: query.cursor,
|
|
|
q,
|
|
|
+ // pageSize: The maximum number of files to return per page.
|
|
|
+ // Partial or empty result pages are possible even before the end of the files list has been reached.
|
|
|
+ // Acceptable values are 1 to 1000, inclusive. (Default: 100)
|
|
|
+ //
|
|
|
+ // @TODO:
|
|
|
+ // SAD WARNING: doesn’t work if you have multiple `fields`, defaults to 100 anyway.
|
|
|
+ // Works if we remove `permissions(role,emailAddress)`, which we use to set the email address
|
|
|
+ // of logged in user in the Provider View header on the frontend.
|
|
|
+ // See https://stackoverflow.com/questions/42592125/list-request-page-size-being-ignored
|
|
|
+ //
|
|
|
+ // pageSize: 1000,
|
|
|
// pageSize: 10, // can be used for testing pagination if you don't have many files
|
|
|
orderBy: 'folder,name',
|
|
|
includeItemsFromAllDrives: true,
|