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

  1. CubyCode
  2. MyStream | A social network app template
Public

37
49
37
49
  • DatabaseDatabase
  • GraphQL API PlaygroundAPI Playground
  • Get Started GuideGet Started
  • IssuesIssues
  • ContributorsContributors
  • Database
    Database
    Get Started Guide
    Get Started
    Issues
    Issues
    Contributors
    Contributors

All Activities

This GraphQL query fetches All Activities


0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
query allActivities {
      activities (skip: 0, limit: 3) {
        results {
          ACL
          createdAt
          currentUser {
            id
          }
          id
          otherUser {
            id
          }
          streamPointer {
            id
          }
          text
          updatedAt
        }
      }
    }
{
  "data": {
    "activities": {
      "results": [
        {
          "ACL": null,
          "createdAt": "2017-12-28T07:46:44.600Z",
          "currentUser": {
            "id": "wZv0tExZGx"
          },
          "id": "VA4LPHIMAM",
          "otherUser": {
            "id": "RMgkEMomie"
          },
          "streamPointer": {
            "id": "vIga6fJpBS"
          },
          "text": "Bob Doe commented on your Stream: 'Wonder Wheel in London.\nOne of my best pictures.'",
          "updatedAt": "2017-12-28T07:46:44.600Z"
        },
        {
          "ACL": null,
          "createdAt": "2017-12-28T09:28:48.323Z",
          "currentUser": {
            "id": "SfpdZmXNBP"
          },
          "id": "cayFcPw7NG",
          "otherUser": {
            "id": "wZv0tExZGx"
          },
          "streamPointer": {
            "id": "LtQY3al6PE"
          },
          "text": "John Doe liked your Stream: 'Stream Text: http://cubycode.com\nLorem ipsum dolor sit amet, consectetur \nAdipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'",
          "updatedAt": "2018-03-22T09:44:10.320Z"
        },
        {
          "ACL": null,
          "createdAt": "2018-06-12T21:11:27.343Z",
          "currentUser": {
            "id": "woHfEq2Dxb"
          },
          "id": "ymmiiMCM6k",
          "otherUser": {
            "id": "Aj5u7z1Dtm"
          },
          "streamPointer": {
            "id": "SGNoWFD8cL"
          },
          "text": "Alex Capurro liked your Stream: 'check this...'",
          "updatedAt": "2018-06-12T21:11:27.343Z"
        }
      ]
    }
  }
}