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

Function buildDriveQuery

apps/sim/connectors/google-forms/google-forms.ts:460–465  ·  view source on GitHub ↗

* Builds the Drive `q` query that selects form files, optionally scoped to one * or more folders. Single quotes and backslashes in folder IDs are escaped to * prevent query injection.

(folderIds: string[])

Source from the content-addressed store, hash-verified

458 * prevent query injection.
459 */
460function buildDriveQuery(folderIds: string[]): string {
461 const parts = ['trashed = false', `mimeType = '${FORM_MIME_TYPE}'`]
462 const parentsClause = buildDriveParentsClause(folderIds)
463 if (parentsClause) parts.push(parentsClause)
464 return parts.join(' and ')
465}
466
467export const googleFormsConnector: ConnectorConfig = {
468 ...googleFormsConnectorMeta,

Callers 1

google-forms.tsFile · 0.85

Calls 3

buildDriveParentsClauseFunction · 0.90
joinMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected