The Database Hub | Back4App
The Database Hub | Back4App
How it works
  • Log In
  • Sign Up

  1. CubyCode
  2. iRestaurant | Universal Restaurant App Template for Android/iOS
Public

17
28
17
28
  • DatabaseDatabase
  • GraphQL API PlaygroundAPI Playground
  • Get Started GuideGet Started
  • IssuesIssues
  • ContributorsContributors
  • Database
    Database
    Get Started Guide
    Get Started
    Issues
    Issues
    Contributors
    Contributors

All Restaurants

This GraphQL query fetches All Restaurants


0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
query allRestaurants {
      restaurants (skip: 0, limit: 3) {
        results {
          ACL
          address
          coverImage {
            url
            name
          }
          createdAt
          description
          facebook
          id
          instagram
          logo {
            url
            name
          }
          name
          phone
          tripadvisor
          twitter
          updatedAt
          website
        }
      }
    }
{
  "data": {
    "restaurants": {
      "results": [
        {
          "ACL": null,
          "address": "W 101 Street, Manhattan, New York, USA",
          "coverImage": {
            "url": "https://parsefiles.back4app.com/cOV1o0Km3m8jnGg0xnVOA7lzdUshDLi5NoaJ9sTU/6e11ec7f860f90cefe9f5933e804bbd2_download.jpg",
            "name": "6e11ec7f860f90cefe9f5933e804bbd2_download.jpg"
          },
          "createdAt": "2017-07-05T06:56:10.865Z",
          "description": "Our mission is to provide you with an unforgettable dining experience and offer you the best locally sourced organic food in town. \nLorem ipsec dolor sit lorem ipsec dolor sit lorem ipsec dolor sit lorem ipsec dolor sit lorem ipsec dolor sit lorem ipsec dolor sit quantum est lorem ipsec dolor.\nLorem ipsec dolor sit quantum.",
          "facebook": "http://facebook.com/restaurant_id",
          "id": "owy8Ye8lEv",
          "instagram": "https://instagram.com/restaurant_username",
          "logo": {
            "url": "https://parsefiles.back4app.com/cOV1o0Km3m8jnGg0xnVOA7lzdUshDLi5NoaJ9sTU/6e07f558552b4d7bfb160c9198a42a5c_restaurant-logo-template_23-2147510426.jpg",
            "name": "6e07f558552b4d7bfb160c9198a42a5c_restaurant-logo-template_23-2147510426.jpg"
          },
          "name": "The Four Seasons Restaurant",
          "phone": "123456789",
          "tripadvisor": "http://tripadvisor.com/restaurant_link",
          "twitter": "https://twitter/restaurant_username",
          "updatedAt": "2017-12-06T09:43:31.662Z",
          "website": "http://my_restaurant_website.com"
        },
        {
          "ACL": null,
          "address": "W 101 Street, Manhattan, New York, USA",
          "coverImage": {
            "url": "https://parsefiles.back4app.com/cOV1o0Km3m8jnGg0xnVOA7lzdUshDLi5NoaJ9sTU/ea386c8eee505cd1ff64f58b2e9f7775_image.jpg",
            "name": "ea386c8eee505cd1ff64f58b2e9f7775_image.jpg"
          },
          "createdAt": "2018-07-04T04:35:59.566Z",
          "description": "Your restaurant description here",
          "facebook": "http://facebook.com/restaurant_id",
          "id": "ORs6OFvKB9",
          "instagram": "https://instagram.com/restaurant_username",
          "logo": {
            "url": "https://parsefiles.back4app.com/cOV1o0Km3m8jnGg0xnVOA7lzdUshDLi5NoaJ9sTU/ea386c8eee505cd1ff64f58b2e9f7775_image.jpg",
            "name": "ea386c8eee505cd1ff64f58b2e9f7775_image.jpg"
          },
          "name": "Your Restaurant Name",
          "phone": "123456789",
          "tripadvisor": "http://tripadvisor.com/restaurant_link",
          "twitter": "https://twitter/restaurant_username",
          "updatedAt": "2018-07-04T04:35:59.566Z",
          "website": "http://my_restaurant_website.com"
        },
        {
          "ACL": null,
          "address": "W 101 Street, Manhattan, New York, USA",
          "coverImage": {
            "url": "https://parsefiles.back4app.com/cOV1o0Km3m8jnGg0xnVOA7lzdUshDLi5NoaJ9sTU/fe7cba1fd091e65013143ea66f93ebe9_image.jpg",
            "name": "fe7cba1fd091e65013143ea66f93ebe9_image.jpg"
          },
          "createdAt": "2018-06-19T06:35:26.524Z",
          "description": "Your restaurant description here",
          "facebook": "http://facebook.com/restaurant_id",
          "id": "rJbMRxpSQX",
          "instagram": "https://instagram.com/restaurant_username",
          "logo": {
            "url": "https://parsefiles.back4app.com/cOV1o0Km3m8jnGg0xnVOA7lzdUshDLi5NoaJ9sTU/fe7cba1fd091e65013143ea66f93ebe9_image.jpg",
            "name": "fe7cba1fd091e65013143ea66f93ebe9_image.jpg"
          },
          "name": "Your Restaurant Name",
          "phone": "123456789",
          "tripadvisor": "http://tripadvisor.com/restaurant_link",
          "twitter": "https://twitter/restaurant_username",
          "updatedAt": "2018-06-19T06:35:26.524Z",
          "website": "http://my_restaurant_website.com"
        }
      ]
    }
  }
}