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

# Store

> Query store configuration, theming, and domain details from the Storefront API.

## Queries

### `storeDetailsByUid`

Fetch store details by UID.

```graphql theme={null}
query StoreByUid($uid: UUID!) {
  storeDetailsByUid(uid: $uid) {
    uid
    name
    slug
    domain
    currency
    customDomain
    theme
    themeConfig
    displayMode
    createdAt
    updatedAt
  }
}
```

### `storeDetailsByDomain`

Fetch store details by custom domain. Use this when resolving a store from a custom domain at runtime.

```graphql theme={null}
query StoreByDomain($domain: String!) {
  storeDetailsByDomain(domain: $domain) {
    uid
    name
    slug
    currency
    theme
    themeConfig
  }
}
```

### `currentStore`

Fetch the store from the current request context.

```graphql theme={null}
query CurrentStore {
  currentStore {
    uid
    name
    slug
    currency
  }
}
```

## Types

### Store

| Field          | Type       | Description                              |
| -------------- | ---------- | ---------------------------------------- |
| `uid`          | `UUID`     | Store ID                                 |
| `name`         | `String`   | Store name                               |
| `slug`         | `String`   | URL slug                                 |
| `domain`       | `String`   | Default domain (`{slug}.colossal.store`) |
| `currency`     | `String`   | Default currency code                    |
| `customDomain` | `String?`  | Custom domain if configured              |
| `theme`        | `JSON?`    | Theme data                               |
| `themeConfig`  | `JSON?`    | Theme configuration                      |
| `displayMode`  | `String?`  | Display mode                             |
| `createdAt`    | `DateTime` |                                          |
| `updatedAt`    | `DateTime` |                                          |
