Query
query SearchCompanies($searchQuery: CompaniesSearchQuery!) {
searchCompanies(searchQuery: $searchQuery) {
edges {
cursor
node {
company {
__typename
}
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Variables
{
"searchQuery": {
"term": "string"
}
}Response
{
"data": {
"searchCompanies": {
"edges": [
{
"cursor": "string",
"node": {
"company": {
"__typename": "Company"
}
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Queries
searchCompanies
Searches companies by name or domain using a case-insensitive partial match. The search term must be at least 2 characters long. Supports cursor-based pagination and optional filtering. Each match is returned as a CompanySearchResult that wraps the matched company. Requires the company:read permission.
QUERY
searchCompanies(searchQuery: CompaniesSearchQuery!, filters: CompaniesFilter, first: Int, after: String, last: Int, before: String): CompanySearchResultConnection!Arguments
searchQuery
required
filters
first
Int
after
String
last
Int
before
String
Returns
edges
pageInfo
Query
query SearchCompanies($searchQuery: CompaniesSearchQuery!) {
searchCompanies(searchQuery: $searchQuery) {
edges {
cursor
node {
company {
__typename
}
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Variables
{
"searchQuery": {
"term": "string"
}
}Response
{
"data": {
"searchCompanies": {
"edges": [
{
"cursor": "string",
"node": {
"company": {
"__typename": "Company"
}
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Was this page helpful?

