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

  1. Back4App
  2. Node.js App Template using Cloud Code and Web Hosting
Public

123
96
123
96
  • 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-02-19T03:04:47.420Z",
          "id": "7O8mV94USp",
          "name": "B4aAdminUser",
          "roles": {
            "results": []
          },
          "updatedAt": "2019-02-19T03:04:47.420Z",
          "users": {
            "results": [
              {
                "id": "LjzZ0e8CPS"
              }
            ]
          }
        }
      ]
    }
  }
}