query-builder-for-driveapi
Advanced tools
Changelog
3.0.0 (2024-06-26)
| Old Method | New Method |
| -------------------- | ----------------- |
| not()
| negate()
|
| getByCollection()
| collection()
|
| getByFileName()
| fileName()
|
| getByContent()
| content()
|
| getByFileType()
| fileType()
|
| getByCreatedAt()
| createdAt()
|
| getByUpdatedAt()
| updatedAt()
|
| getByVisibility()
| visibility()
|
| getByPublicProp()
| properties()
|
| getByPrivateProp()
| appProperties()
|
| isTrashed()
| trashed()
|
| isStarred()
| starred()
|
| isHidden()
| hidden()
|
qb.not().getByFileName('test.txt')
.not().getByFileType('...')
</td>
<td>
qb.negate(() => {
qb.fileName('test.txt')
qb.fileType('...')
// ...
})
</td>
</tr>
</tbody>
</table>
build()
method adds trashed = false
to the query if trashed is not specified. (4bf845c)| Field | Method |
| -------------------------- | -------------------- |
| memberCount
| memberCount()
|
| organizerCount
| organizerCount()
|
| orgUnitId
| orgDriveId()
|
| sharedWithMe
| shared()
|
| shortcutDetails.targetId
| shortcutTargetId()
|
| viewedByMeTime
| viewedAt()
|
qb.getByFileName('value').build()
//=> (name = 'value')
qb.getByFileName(['value-1', 'value-2']).build()
//=> (name = 'value-1' or name = 'value-2')
</td>
<td>
qb.fileName('value').build()
//=> name = 'value'
qb.fileName(['value-1', 'value-2']).build()
//=> (name = 'value-1' or name = 'value-2')
</td>
</tr>
</tbody>
</table>
Changelog
2.0.0 (2023-12-30)
FileType
and VisibilityLevel
enums (2b0faf6)properties
and appProperties
(265f4a3)starred
and hidden
(56fd889)visibilityLevel
(e44076f)Changelog
1.1.0 (2023-11-29)
inParents()
as inCollection()
isTrashed()
method for 'trashed' term (1a26c8b)inParents()
as inCollection()
(535ccf4)inParents()
(045b4ca)not()
negates all queries, not just next (365ddee)not()
not working with inParents()
(27d5c5d)tsup
output (f702c3c)