API reference
restaurants
The restaurants query. Returns RestaurantPage.
restaurants(
first: Int
after: String
filter: RestaurantFilter
): RestaurantPageArguments
| Name | Type | Description |
|---|---|---|
first |
Int |
|
after |
String |
|
filter |
RestaurantFilter |
Returns
Example
query Restaurants {
restaurants {
edges {
cursor
node {
id
autoAcceptDeliveryHeroOrders
deliveryHeroChainId
deliveryHeroEnabled
deliveryHeroVendorId
deliveryHeroWebhookUrl
}
}
pageInfo {
endCursor
hasNextPage
}
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "query { restaurants { __typename } }"}'