Restaurant Search
The restaurantSearch
query searches restaurants that match your query term, provided geolocation(lat, long), distance, price rate, and meals among others.
Pagination can be used if it is required to display a specific quantity of restaurants or a specific number per page.
Arguments
Argument | Type | Description |
| Query | Name or keyword of the restaurant name. It is possible to add more than one value. The query is case insensitive. |
| Boolean | True if the restaurant is open |
| meals | Name of the meal to include in the search criteria. |
| Location | Latitude where the restaurant is located |
| Location | Longitud where the restaurant is located |
| Int | Search radius in Kms (default is 1km), from the coordinates provided |
Available Fields
Field | Type | Description |
| String | Name of the restaurant |
| String | Restaurant address |
| String | Number of recommended restaurants |
| String | Name of the recommended restaurant |
| String | Recommended menu item |
| Int | Number of recommendations given to the restaurant |
| String | Refer to the |
| Object that returns the information regarding pagination. |
Example
Restaurant search by using a term and location
The following example retrieves the information of all first 15 open Mexican restaurants in a distance of 200km which serve meat.
{
restaurantSearch(
query:"Mexican Restaurant"
distance: 100
meals: "meat"
isOpen:true
first:15 )
{
totalCount
edges
{
node{
name
shortName
isRecomended
address1
cityTown
country
recommendation
recommendationsCount
}
}
}
}
{
"data": {
"restaurantSearch": {
"totalCount": 50,
"edges": [
{
"node": {
"name": "Calvillo's Mexican Restaurant",
"shortName": null,
"isRecomended": true,
"address1": "400 Main St",
"cityTown": "Alamosa",
"country": "US",
"recommendation": "Ceviche Tostadas",
"recommendationsCount": 0
}
},
{
"node": {
"name": "Juarez Mexican Restaurant",
"shortName": null,
"isRecomended": true,
"address1": "1806 A St",
"cityTown": "Antioch",
"country": "US",
"recommendation": "Bistec Encebollado",
"recommendationsCount": 0
}
},
{
"node": {
"name": "Jalapenos Mexican Restaurant",
"shortName": null,
"isRecomended": true,
"address1": "6318 Brookside Plz.",
"cityTown": "Kansas City",
"country": "United States",
"recommendation": "Ck Verde Burrito with Rice",
"recommendationsCount": 0
}
},
{
"node": {
"name": "El Barril Mexican Grill",
"shortName": null,
"isRecomended": true,
"address1": "2312 Market Place Dr",
"cityTown": "Maryville",
"country": "US",
"recommendation": "Quesadilla Cancun",
"recommendationsCount": 54
}
},
{
"node": {
"name": "Felipe's Mexican Restaurant",
"shortName": null,
"isRecomended": true,
"address1": "9718 E Harry St",
"cityTown": "Wichita",
"country": "US",
"recommendation": null,
"recommendationsCount": 0
}
},
{
"node": {
"name": "El Cantarito Mexican Restaurant",
"shortName": null,
"isRecomended": true,
"address1": "191 S Tulane Ave",
"cityTown": "Oak Ridge",
"country": "US",
"recommendation": "Carne Asada (9 Oz)",
"recommendationsCount": 0
}
},
{
"node": {
"name": "El Tequileno Family Mexican Restaurant-Aurora",
"shortName": null,
"isRecomended": true,
"address1": "2790 S Havana St",
"cityTown": "Aurora",
"country": "US",
"recommendation": "Mexican Hamburger",
"recommendationsCount": 152
}
},
{
"node": {
"name": "Green Cactus Mexican Grill",
"shortName": null,
"isRecomended": true,
"address1": "288 Sunrise Hwy",
"cityTown": "Rockville Centre",
"country": "US",
"recommendation": null,
"recommendationsCount": 0
}
},
{
"node": {
"name": "Margaritas Mexican Restaurant",
"shortName": null,
"isRecomended": true,
"address1": "77 Main St",
"cityTown": "Keene",
"country": "US",
"recommendation": "Queso Fundido",
"recommendationsCount": 0
}
},
{
"node": {
"name": "Culture An American Yogurt Company",
"shortName": null,
"isRecomended": true,
"address1": "331 5th Ave",
"cityTown": "Brooklyn",
"country": "US",
"recommendation": null,
"recommendationsCount": 0
}
},
{
"node": {
"name": "Mr. Tequila Mexican Restaurant",
"shortName": null,
"isRecomended": true,
"address1": "3126 Tamiami Trail North",
"cityTown": "Naples",
"country": "US",
"recommendation": "Enchiladas Yolanda",
"recommendationsCount": 54
}
},
{
"node": {
"name": "Plaza Garibaldi Mexican Restaurant",
"shortName": null,
"isRecomended": true,
"address1": "134 Nepperhan Ave",
"cityTown": "Yonkers",
"country": "US",
"recommendation": "Caldo De Res",
"recommendationsCount": 0
}
},
{
"node": {
"name": "American Bounty Restaurant",
"shortName": null,
"isRecomended": true,
"address1": "1946 Campus Dr",
"cityTown": "Hyde Park",
"country": "US",
"recommendation": "Seared Sea Scallops",
"recommendationsCount": 0
}
},
{
"node": {
"name": "Hacienda Mexican Grill",
"shortName": null,
"isRecomended": true,
"address1": "1449 N Davis Rd",
"cityTown": "Salinas",
"country": "US",
"recommendation": "Fajita Salad",
"recommendationsCount": 0
}
},
{
"node": {
"name": "Casa Mexicana",
"shortName": null,
"isRecomended": true,
"address1": "1015 Madison St",
"cityTown": "Shelbyville",
"country": "US",
"recommendation": "Tossed Salad With Shrimp",
"recommendationsCount": 0
}
}
]
}
}
}
Restaurant search by using pagination
The following example retrieves the information of all first 10 open Mexican restaurants, it also indicates if there are more results available or if the connection was reached out by using the hasNextPage
field. Continue the pagination using the endCursor
{
restaurantSearch(
query:"Mexican Restaurant"
distance: 100
meals: "meat"
isOpen:true
first:10 )
{
totalCount
edges
{
node{
name
isRecomended
address1
cityTown
country
recommendation
recommendationsCount
databaseId
}
cursor
}
pageInfo {
endCursor
hasNextPage
}
}
}
{
"data": {
"restaurantSearch": {
"totalCount": 50,
"edges": [
{
"node": {
"name": "Calvillo's Mexican Restaurant",
"isRecomended": true,
"address1": "400 Main St",
"cityTown": "Alamosa",
"country": "US",
"recommendation": "Ceviche Tostadas",
"recommendationsCount": 0,
"databaseId": "8ae8653f-6f76-4487-95ac-bcbaf5de9a0f"
},
"cursor": "YXJyYXljb25uZWN0aW9uOjA="
},
{
"node": {
"name": "Juarez Mexican Restaurant",
"isRecomended": true,
"address1": "1806 A St",
"cityTown": "Antioch",
"country": "US",
"recommendation": "Bistec Encebollado",
"recommendationsCount": 0,
"databaseId": "bff89f69-22d9-49fc-abf1-97b976daf6b8"
},
"cursor": "YXJyYXljb25uZWN0aW9uOjE="
},
{
"node": {
"name": "Jalapenos Mexican Restaurant",
"isRecomended": true,
"address1": "6318 Brookside Plz.",
"cityTown": "Kansas City",
"country": "United States",
"recommendation": "Ck Verde Burrito with Rice",
"recommendationsCount": 0,
"databaseId": "14a218eb-d2cd-4f8b-9112-a782af067af9"
},
"cursor": "YXJyYXljb25uZWN0aW9uOjI="
},
{
"node": {
"name": "El Barril Mexican Grill",
"isRecomended": true,
"address1": "2312 Market Place Dr",
"cityTown": "Maryville",
"country": "US",
"recommendation": "Quesadilla Cancun",
"recommendationsCount": 54,
"databaseId": "5d1f00d2-32d3-4a18-9aac-68cda33ba9e4"
},
"cursor": "YXJyYXljb25uZWN0aW9uOjM="
},
{
"node": {
"name": "Felipe's Mexican Restaurant",
"isRecomended": true,
"address1": "9718 E Harry St",
"cityTown": "Wichita",
"country": "US",
"recommendation": null,
"recommendationsCount": 0,
"databaseId": "f6013fba-42d5-4f77-ad1b-9d1c8b287802"
},
"cursor": "YXJyYXljb25uZWN0aW9uOjQ="
},
{
"node": {
"name": "El Cantarito Mexican Restaurant",
"isRecomended": true,
"address1": "191 S Tulane Ave",
"cityTown": "Oak Ridge",
"country": "US",
"recommendation": "Carne Asada (9 Oz)",
"recommendationsCount": 0,
"databaseId": "d096ffa8-c695-41f1-a77a-1f21896b781e"
},
"cursor": "YXJyYXljb25uZWN0aW9uOjU="
},
{
"node": {
"name": "El Tequileno Family Mexican Restaurant-Aurora",
"isRecomended": true,
"address1": "2790 S Havana St",
"cityTown": "Aurora",
"country": "US",
"recommendation": "Mexican Hamburger",
"recommendationsCount": 152,
"databaseId": "379d4948-23a8-4d54-bebf-45c4d4fc5024"
},
"cursor": "YXJyYXljb25uZWN0aW9uOjY="
},
{
"node": {
"name": "Green Cactus Mexican Grill",
"isRecomended": true,
"address1": "288 Sunrise Hwy",
"cityTown": "Rockville Centre",
"country": "US",
"recommendation": null,
"recommendationsCount": 0,
"databaseId": "74210e3f-6f5e-4b0c-97a4-a3aaf829e12e"
},
"cursor": "YXJyYXljb25uZWN0aW9uOjc="
},
{
"node": {
"name": "Margaritas Mexican Restaurant",
"isRecomended": true,
"address1": "77 Main St",
"cityTown": "Keene",
"country": "US",
"recommendation": "Queso Fundido",
"recommendationsCount": 0,
"databaseId": "e19f54b4-112e-4e76-8825-f3ba6ae15c9e"
},
"cursor": "YXJyYXljb25uZWN0aW9uOjg="
},
{
"node": {
"name": "Culture An American Yogurt Company",
"isRecomended": true,
"address1": "331 5th Ave",
"cityTown": "Brooklyn",
"country": "US",
"recommendation": null,
"recommendationsCount": 0,
"databaseId": "4a84ae24-f044-4ec0-a214-6f6c4ccdb806"
},
"cursor": "YXJyYXljb25uZWN0aW9uOjk="
}
],
"pageInfo": {
"endCursor": "YXJyYXljb25uZWN0aW9uOjk=",
"hasNextPage": true
}
}
}
}
Last updated