# ResolverContext

Learn about the Shopify context your resolvers read from.

This type describes the Shopify context passed to the [identity resolver](/reference/sdk/hydrogen/api/types/user-id-resolver) and [locale resolver](/reference/sdk/hydrogen/api/types/locale-resolver). It is available on both the [React Router 7](https://reactrouter.com) and [Remix](https://remix.run) setups.

## Definition

The type has the following shape:

```ts
type ResolverContext = {
  env: unknown,
  customerAccount: {
    isLoggedIn: () => Promise<boolean>,
    query: (query: string) => Promise<{data?: unknown}>,
  },
  storefront: {
    i18n: {language: string, country: string},
  },
};
```

## Properties

The following list describes the properties:

- `env`: `unknown`

  The [Oxygen](https://shopify.dev/docs/storefronts/headless/hydrogen/deployments/oxygen-runtime) environment bindings for the current request.

- `customerAccount`: `object`

  The Shopify [Customer Account API](https://shopify.dev/docs/api/customer) client, used to read the logged-in customer.

- `storefront`: `object`

  The Shopify [Storefront API](https://shopify.dev/docs/api/storefront) client, whose `i18n` configuration carries the storefront language and country.
