> ## Documentation Index
> Fetch the complete documentation index at: https://docs.napps.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Storefront calls

`storefrontCall` runs a Shopify Storefront API GraphQL request using the app's configured endpoint and access token.

```ts theme={null}
declare function storefrontCall<T>(
  query: string,
  properties?: object
): Promise<GraphQLResponse<T>>;
```

```ts theme={null}
const result = await storefrontCall<{ product: { id: string; title: string } | null }>(
  `query Product($id: ID!) { product(id: $id) { id title } }`,
  { id: "gid://shopify/Product/123" }
);
```

The resolved value has this shape:

```ts theme={null}
interface GraphQLResponse<T> {
  data: T;
  extensions: object | undefined;
  errors: object[] | undefined;
}
```

## Deprecated calls

Deprecated Storefront API calls will be blocked. Migrate to the supported generic signature: put
the operation document in `query`, pass request values in the second `properties` object, and
handle the returned `data` and `errors` fields.
