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

  1. Back4App
  2. Instagram Clone
Public

50
55
50
55
  • DatabaseDatabase
  • GraphQL API PlaygroundAPI Playground
  • Get Started GuideGet Started
  • IssuesIssues
  • ContributorsContributors
  • Database
    Database
    Get Started Guide
    Get Started
    Issues
    Issues
    Contributors
    Contributors

All Posts

This GraphQL query fetches All Posts


0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
query allPosts {
      posts (skip: 0, limit: 3) {
        results {
          ACL
          createdAt
          description
          id
          likes
          location {
            latitude
            longitude
          }
          owner {
            id
          }
          photo {
            url
            name
          }
          updatedAt
        }
      }
    }
{
  "data": {
    "posts": {
      "results": [
        {
          "ACL": null,
          "createdAt": "2019-08-30T12:52:07.187Z",
          "description": "Test",
          "id": "kx7VwAHeiT",
          "likes": null,
          "location": null,
          "owner": {
            "id": "mPkCbx25A3"
          },
          "photo": {
            "url": "https://parsefiles.back4app.com/6RLolSaDDYPpoH68sXCCPpKy061Z6kG3c6OGupzU/c2e1c4b5bb6f3d306889911aa20d7a1b_command-line-interface-main.jpg",
            "name": "c2e1c4b5bb6f3d306889911aa20d7a1b_command-line-interface-main.jpg"
          },
          "updatedAt": "2019-10-29T13:50:11.537Z"
        },
        {
          "ACL": null,
          "createdAt": "2019-10-29T13:50:38.025Z",
          "description": "Test 2",
          "id": "laBjzlGlcC",
          "likes": null,
          "location": null,
          "owner": {
            "id": "mPkCbx25A3"
          },
          "photo": {
            "url": "https://parsefiles.back4app.com/6RLolSaDDYPpoH68sXCCPpKy061Z6kG3c6OGupzU/0b0add1206953a5a862d0fcfefd237dc_encrypted_chat.jpeg",
            "name": "0b0add1206953a5a862d0fcfefd237dc_encrypted_chat.jpeg"
          },
          "updatedAt": "2019-10-29T13:51:04.770Z"
        },
        {
          "ACL": null,
          "createdAt": "2019-10-29T13:50:52.298Z",
          "description": "Test 3",
          "id": "4Z6O5oOuBh",
          "likes": null,
          "location": null,
          "owner": {
            "id": "mPkCbx25A3"
          },
          "photo": {
            "url": "https://parsefiles.back4app.com/6RLolSaDDYPpoH68sXCCPpKy061Z6kG3c6OGupzU/cf72d332c585493b6a6cf72092529c36_store_key.jpeg",
            "name": "cf72d332c585493b6a6cf72092529c36_store_key.jpeg"
          },
          "updatedAt": "2019-10-29T13:51:06.383Z"
        }
      ]
    }
  }
}