MCPcopy Index your code
hub / github.com/simstudioai/sim / buildDriveParentsClause

Function buildDriveParentsClause

apps/sim/connectors/utils.ts:112–116  ·  view source on GitHub ↗
(folderIds: string[])

Source from the content-addressed store, hash-verified

110 * emitted without wrapping parentheses to keep the query minimal.
111 */
112export function buildDriveParentsClause(folderIds: string[]): string | null {
113 if (folderIds.length === 0) return null
114 const clause = folderIds.map((id) => `'${escapeDriveQueryValue(id)}' in parents`).join(' or ')
115 return folderIds.length > 1 ? `(${clause})` : clause
116}
117
118/**
119 * Reads a response body into a Buffer while enforcing a hard byte cap. The

Callers 3

buildDriveQueryFunction · 0.90
buildQueryFunction · 0.90
buildQueryFunction · 0.90

Calls 2

escapeDriveQueryValueFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected