Skip to content

search

Find customers, orders and products by text. Matches a customer reference, surname, email or postcode, an order reference, an entry code, or a product name.

search(
after: String
before: String
directives: [SearchDirective!]
first: Int
includedOriginIds: [Guid]
last: Int
text: String!
): SearchResultConnection

Only items after this cursor: the endCursor of the page before.

Only items before this cursor: the startCursor of the page after.

Where to look. Omitted: everywhere.

At most this many items, from the start or after the after cursor.

The exact set of profile origins whose profiles to include - a null entry means native. Nothing is implicit: an empty/absent set returns no-one, and a foreign customer shows only when their network origin is here.

At most this many items, from the end or before the before cursor.

The text to find.

A page of the items that a field lists.