Skip to main content

Arguments

maxResults : Int default: 20

The maximum number of results to return.

searchTerms : AccountSearchInputType

Search operators.

Returns

[AccountSearchItemType]

A single account search hit

Allowed Viewers

Customer Partner User Third party

Required Permissions

Can search for accounts

Query Complexity

1

Examples

The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.

Query

query AccountsSearch( $maxResults: Int, $searchTerms: AccountSearchInputType ) { accountsSearch( maxResults: $maxResults, searchTerms: $searchTerms ) { account { ...AccountTypeFragment } score } }

Variables

{ "maxResults": 87, "searchTerms": AccountSearchInputType }

Response

{ "data": { "accountsSearch": [ { "account": AccountType, "score": "1.0" } ] } }