API reference

restaurants

The restaurants query. Returns RestaurantPage.

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

Arguments

Name Type Description
first Int
after String
filter RestaurantFilter

Returns

RestaurantPage

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 } }"}'