# restaurants

> The `restaurants` query. Returns `RestaurantPage`.

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

```graphql
restaurants(
  first: Int
  after: String
  filter: RestaurantFilter
): RestaurantPage
```

## Arguments

| Name | Type | Description |
| --- | --- | --- |
| `first` | [`Int`](https://docs.gastrogate.io/docs/api/types/Int.md) |  |
| `after` | [`String`](https://docs.gastrogate.io/docs/api/types/String.md) |  |
| `filter` | [`RestaurantFilter`](https://docs.gastrogate.io/docs/api/types/RestaurantFilter.md) |  |

## Returns

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

## Example

```graphql
query Restaurants {
  restaurants {
    edges {
      cursor
      node {
        id
        autoAcceptDeliveryHeroOrders
        deliveryHeroChainId
        deliveryHeroEnabled
        deliveryHeroVendorId
        deliveryHeroWebhookUrl
      }
    }
    pageInfo {
      endCursor
      hasNextPage
    }
  }
}
```

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