Skip to content
gist.link ↗

searchProjectFiles

Query Deploy API — POST https://deploy.api.gist.link/graphql

Workspace-wide literal text search (max 300 matches; node_modules/.git/dist excluded). Any org member.

deploy:query:searchProjectFiles

The calling IAM key must hold this permission (or a wildcard that covers it: deploy:query:* or deploy:*) and the access token must have been minted with audience=deploy. See Permissions.

type Query {
searchProjectFiles(projectId: Int!, query: String!, caseSensitive: Boolean): [SearchMatch!]!
}
Argument Type Required Description
projectId Int! Yes —
query String! Yes —
caseSensitive Boolean No —

[SearchMatch!]! — see the Deploy types reference.

Terminal window
curl https://deploy.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query SearchProjectFiles($projectId: Int!, $query: String!, $caseSensitive: Boolean) { searchProjectFiles(projectId: $projectId, query: $query, caseSensitive: $caseSensitive) { path line text } }",
"variables": {
"projectId": 10,
"query": "example",
"caseSensitive": true
}
}
JSON