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

Drive Items

Path: onedrive.db.driveItems.search
const rows = await corsair.onedrive.db.driveItems.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
sizenumberequals, gt, gte, lt, lte, in
webUrlstringequals, contains, startsWith, endsWith, in
eTagstringequals, contains, startsWith, endsWith, in
cTagstringequals, contains, startsWith, endsWith, in
createdDateTimestringequals, contains, startsWith, endsWith, in
lastModifiedDateTimestringequals, contains, startsWith, endsWith, in
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.

Drives

Path: onedrive.db.drives.search
const rows = await corsair.onedrive.db.drives.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
driveTypestringequals, contains, startsWith, endsWith, in
webUrlstringequals, contains, startsWith, endsWith, in
descriptionstringequals, contains, startsWith, endsWith, in
createdDateTimestringequals, contains, startsWith, endsWith, in
lastModifiedDateTimestringequals, contains, startsWith, endsWith, in
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.