GitHub

Customer

import { Customer } from '@daffodil/driver/shopify'

A customer represents a customer account with the shop. Customer accounts store contact information for the customer, saving logged-in customers the trouble of having to provide it at every checkout.

type Customer = HasMetafields & {
    __typename?: 'Customer';
    acceptsMarketing: Scalars['Boolean']['output'];
    addresses: MailingAddressConnection;
    createdAt: Scalars['DateTime']['output'];
    defaultAddress?: Maybe<MailingAddress>;
    displayName: Scalars['String']['output'];
    email?: Maybe<Scalars['String']['output']>;
    firstName?: Maybe<Scalars['String']['output']>;
    id: Scalars['ID']['output'];
    lastIncompleteCheckout?: Maybe<Checkout>;
    lastName?: Maybe<Scalars['String']['output']>;
    metafield?: Maybe<Metafield>;
    metafields: Array<Maybe<Metafield>>;
    numberOfOrders: Scalars['UnsignedInt64']['output'];
    orders: OrderConnection;
    phone?: Maybe<Scalars['String']['output']>;
    tags: Array<Scalars['String']['output']>;
    updatedAt: Scalars['DateTime']['output'];
}