Skip to main content
The Google drive plugin syncs data locally. Use corsair.googledrive.db.<entity>.search({ data, limit?, offset? }) with the filters listed per entity.

Files

Path: googledrive.db.files.search
const rows = await corsair.googledrive.db.files.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
namestringequals, contains, startsWith, endsWith, in
mimeTypestringequals, contains, startsWith, endsWith, in
descriptionstringequals, contains, startsWith, endsWith, in
starredbooleanequals
trashedbooleanequals
explicitlyTrashedbooleanequals
versionstringequals, contains, startsWith, endsWith, in
webViewLinkstringequals, contains, startsWith, endsWith, in
webContentLinkstringequals, contains, startsWith, endsWith, in
iconLinkstringequals, contains, startsWith, endsWith, in
hasThumbnailbooleanequals
thumbnailLinkstringequals, contains, startsWith, endsWith, in
thumbnailVersionstringequals, contains, startsWith, endsWith, in
viewedByMebooleanequals
viewedByMeTimestringequals, contains, startsWith, endsWith, in
createdTimestringequals, contains, startsWith, endsWith, in
modifiedTimestringequals, contains, startsWith, endsWith, in
modifiedByMeTimestringequals, contains, startsWith, endsWith, in
modifiedByMebooleanequals
sharedbooleanequals
ownedByMebooleanequals
viewersCanCopyContentbooleanequals
copyRequiresWriterPermissionbooleanequals
writersCanSharebooleanequals
hasAugmentedPermissionsbooleanequals
folderColorRgbstringequals, contains, startsWith, endsWith, in
originalFilenamestringequals, contains, startsWith, endsWith, in
fullFileExtensionstringequals, contains, startsWith, endsWith, in
fileExtensionstringequals, contains, startsWith, endsWith, in
md5Checksumstringequals, contains, startsWith, endsWith, in
sizestringequals, contains, startsWith, endsWith, in
quotaBytesUsedstringequals, contains, startsWith, endsWith, in
headRevisionIdstringequals, contains, startsWith, endsWith, in
isAppAuthorizedbooleanequals
resourceKeystringequals, contains, startsWith, endsWith, in
sha1Checksumstringequals, contains, startsWith, endsWith, in
sha256Checksumstringequals, contains, startsWith, endsWith, in
filePathstringequals, contains, startsWith, endsWith, in
createdAtdateequals, before, after, between
Every .search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.

Folders

Path: googledrive.db.folders.search
const rows = await corsair.googledrive.db.folders.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
namestringequals, contains, startsWith, endsWith, in
mimeTypestringequals, contains, startsWith, endsWith, in
descriptionstringequals, contains, startsWith, endsWith, in
starredbooleanequals
trashedbooleanequals
explicitlyTrashedbooleanequals
versionstringequals, contains, startsWith, endsWith, in
webViewLinkstringequals, contains, startsWith, endsWith, in
webContentLinkstringequals, contains, startsWith, endsWith, in
iconLinkstringequals, contains, startsWith, endsWith, in
hasThumbnailbooleanequals
thumbnailLinkstringequals, contains, startsWith, endsWith, in
thumbnailVersionstringequals, contains, startsWith, endsWith, in
viewedByMebooleanequals
viewedByMeTimestringequals, contains, startsWith, endsWith, in
createdTimestringequals, contains, startsWith, endsWith, in
modifiedTimestringequals, contains, startsWith, endsWith, in
modifiedByMeTimestringequals, contains, startsWith, endsWith, in
modifiedByMebooleanequals
sharedbooleanequals
ownedByMebooleanequals
viewersCanCopyContentbooleanequals
copyRequiresWriterPermissionbooleanequals
writersCanSharebooleanequals
hasAugmentedPermissionsbooleanequals
folderColorRgbstringequals, contains, startsWith, endsWith, in
filePathstringequals, contains, startsWith, endsWith, in
createdAtdateequals, before, after, between
Every .search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.

Shared Drives

Path: googledrive.db.sharedDrives.search
const rows = await corsair.googledrive.db.sharedDrives.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});

Searchable filters

FieldTypeOperators
entity_idstringequals, contains, startsWith, endsWith, in
idstringequals, contains, startsWith, endsWith, in
namestringequals, contains, startsWith, endsWith, in
themeIdstringequals, contains, startsWith, endsWith, in
colorRgbstringequals, contains, startsWith, endsWith, in
createdTimestringequals, contains, startsWith, endsWith, in
hiddenbooleanequals
createdAtdateequals, before, after, between
Every .search() also accepts limit and offset for pagination. .list() is available on the same path without the .search suffix in code — see database operations.