projectSearch
Searches a project's screenplays, scenes, catalog, shots and takes, and the contacts linked to the project — only the kinds whose project area the caller can view (contacts need edit access to the project's people). Requires access to the project. Results are ranked by relevance and paged with first and after.
Arguments
afterStringCursor from
pageInfo.endCursorof the previous page. Omit for the first page.firstIntMaximum number of results to return, from 1 to 50. Defaults to 20.
projectIdID!ID of the project to search.
queryString!Text to search for.
types[SearchDocKind!]Only return results of these kinds. Omit for all kinds.
Returns
SearchResultConnection!Example
query ProjectSearch($after: String, $first: Int, $projectId: ID!, $query: String!, $types: [SearchDocKind!]) {
projectSearch(
after: $after
first: $first
projectId: $projectId
query: $query
types: $types
) {
totalCount
}
}