Skip to main content
Anchor to customerSegmentMembers

customerSegmentMembers

query

The list of members, such as customers, that's associated with an individual segment. The maximum page size is 1000.

Anchor to Arguments

CustomerSegmentMemberConnection arguments

CustomerSegmentMemberConnection!
String

The elements that come after the specified cursor.

String

The elements that come before the specified cursor.

Int

The first n elements from the paginated list.

Int

The last n elements from the paginated list.

String

The query that's used to filter the members. The query is composed of a combination of conditions on facts about customers such as email_subscription_status = 'SUBSCRIBED' with this syntax.

ID

The ID of the segment members query.

Boolean
Default:false

Reverse the order of the list. The sorting behaviour defaults to ascending order.

ID

The ID of the segment.

String

Sort the list by a given key. Valid values: • created_at - Sort by customer creation date • first_order_date - Sort by the date of the customer's first order • last_abandoned_order_date - Sort by the date of the customer's last abandoned checkout • last_order_date - Sort by the date of the customer's most recent order • number_of_orders - Sort by the total number of orders placed by the customer • amount_spent - Sort by the total amount the customer has spent across all orders

Use with the reverse parameter to control sort direction (ascending by default, descending when reverse=true).

String

The timezone that's used to interpret relative date arguments. The timezone defaults to UTC if the timezone isn't provided.


Was this section helpful?

[CustomerSegmentMemberEdge!]!
non-null

A list of edges.

PageInfo!
non-null

An object that’s used to retrieve cursor information about the current page.

SegmentStatistics!
non-null

The statistics for a given segment.

Int!
non-null

The total number of members in a given segment.


Was this section helpful?