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

Function buildQuery

apps/sim/connectors/google-docs/google-docs.ts:157–164  ·  view source on GitHub ↗

* Builds the Drive API query string for listing Google Docs.

(sourceConfig: Record<string, unknown>)

Source from the content-addressed store, hash-verified

155 * Builds the Drive API query string for listing Google Docs.
156 */
157function buildQuery(sourceConfig: Record<string, unknown>): string {
158 const parts: string[] = ['trashed = false', "mimeType = 'application/vnd.google-apps.document'"]
159
160 const parentsClause = buildDriveParentsClause(parseMultiValue(sourceConfig.folderId))
161 if (parentsClause) parts.push(parentsClause)
162
163 return parts.join(' and ')
164}
165
166export const googleDocsConnector: ConnectorConfig = {
167 ...googleDocsConnectorMeta,

Callers 1

google-docs.tsFile · 0.70

Calls 4

buildDriveParentsClauseFunction · 0.90
parseMultiValueFunction · 0.90
joinMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected