# restaurant

> The `restaurant` query. Returns `Restaurant`.

Source: https://docs.gastrogate.io/docs/api/queries/restaurant

```graphql
restaurant(
  id: ID!
): Restaurant
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `id` | [`ID`](https://docs.gastrogate.io/docs/api/types/ID.md)! |  |

## Returns

[`Restaurant`](https://docs.gastrogate.io/docs/api/types/Restaurant.md)

## Example

```graphql
query Restaurant($id: ID!) {
  restaurant(id: $id) {
    id
    autoAcceptDeliveryHeroOrders
    deliveryHeroChainId
    deliveryHeroEnabled
    deliveryHeroVendorId
    deliveryHeroWebhookUrl
  }
}
```

```bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "query { restaurant(...) { __typename } }"}'
```
