# Smootify.query()

> a Storefront API query in the current market: resolves with `data`, rejects with the GraphQL errors

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/reference/api/methods/query  
Updated: 2026-10-13

a Storefront API query in the current market: resolves with `data`, rejects with the GraphQL errors Since 1.x.

```ts
query<T = unknown>(query: string, variables?: Record<string, unknown>): Promise<T>
```
