# Storefront Service

Members of the Template Service

# GraphQL Query

# Run a GraphQL Query

Run a graphQL query using the existing connection

runGraphqlQuery(query, variables);

# Run a GraphQL Mutation

Run a GraphQL mutation using the existing connection

runGraphqlMutation(mutation, variables);

# Customer

# Get a customer and its relations

Gets the current customers addresses, full customer record & orders

customerDetails();

# Auth

# Login as a customer

customerAccessTokenCreate(customerAccessTokenCreateInput: CustomerAccessTokenCreateInput)

# Create as a cusotmer

Create a customer, typically used in sign up

customerCreate(createUser: CustomerCreateInput)

# Reset a password

Password reset input

customerReset(resetUser: CustomerResetInput)

# Reset a password by email URL

Password reset input by email link URL

customerResetByUrl(resetUrl: string, password: string)

# Ask for a password reset

Ask for a reset password authentication

customerRecover(recoverUser: CustomerRecoverInput)

# Address Management

# Set a customers default address

Send the address I to set the customers Default

customerDefaultAddressUpdate(addressId: number)

# Update a customers address

Update address by ID

customerAddressUpdate(id: number, address: MailingAddressInput)

# Create a customers address

Create an address on a customer

customerAddressCreate(address: MailingAddressInput)

# Orders

# Get an Order by its ID

This functionality doesn't work currently due to Shopify handling returning orders in the most inefficient way ever

orderById(id);