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
Query
Name or keyword of the restaurant name. It is possible to add more than one value. The query is case insensitive.
isOpen
Boolean
True if the restaurant is open
meals
meals
Name of the meal to include in the search criteria.
lat
Location
Latitude where the restaurant is located
long
Location
Longitud where the restaurant is located
distance
Int
Search radius in Kms (default is 1km), from the coordinates provided
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.
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