Skip to main content

searchCustomersByContactMethod

Deprecated

Use Query.searchCustomers instead

Searches for customers by email address or phone number

Arguments

afterString

A cursor to search after (only include first & after or last & before)

beforeString

A cursor to search before (only include first & after or last & before)

emailAddressEmailAddress
firstInt

The number of results to fetch when searching forward (only include first & after or last & before)

lastInt

The number of results to fetch when searching backward (only include first & after or last & before)

phoneNumberPhoneNumber
searchArchivedBoolean

Returns

CustomerConnection!
A connection to a list of items.