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

  1. OMG Lancer
  2. Restaurant App | Solution for Restaurant business for Android by OMG Lancer
Public

37
34
37
34
  • 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-12-03T11:37:55.215Z",
          "id": "y4ml0SNsam",
          "name": "B4aAdminUser",
          "roles": {
            "results": []
          },
          "updatedAt": "2019-12-04T18:05:24.642Z",
          "users": {
            "results": [
              {
                "id": "BYoAeg2QQQ"
              }
            ]
          }
        }
      ]
    }
  }
}