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

  1. OMG Lancer
  2. Booking app | Powerful Hotel Booking app Solution By OMG Lancer
Public

23
35
23
35
  • DatabaseDatabase
  • GraphQL API PlaygroundAPI Playground
  • Get Started GuideGet Started
  • IssuesIssues
  • ContributorsContributors
  • Database
    Database
    Get Started Guide
    Get Started
    Issues
    Issues
    Contributors
    Contributors

All Roles

This GraphQL query fetches All Roles


0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
query allRoles {
      roles (skip: 0, limit: 3) {
        results {
          ACL
          createdAt
          id
          name
          roles (skip: 0, limit: 3) {
            results {
              id
            }
          }
          updatedAt
          users (skip: 0, limit: 3) {
            results {
              id
            }
          }
        }
      }
    }
{
  "data": {
    "roles": {
      "results": [
        {
          "ACL": {
            "*": {
              "read": true,
              "write": true
            }
          },
          "createdAt": "2019-06-19T10:05:19.717Z",
          "id": "eSMywj8oi2",
          "name": "B4aAdminUser",
          "roles": {
            "results": []
          },
          "updatedAt": "2019-06-19T10:05:19.717Z",
          "users": {
            "results": []
          }
        }
      ]
    }
  }
}