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

  1. OMG Lancer
  2. Aplicativo de consulta médica e farmácia (Android) | Médico e paciente Ambos os aplicativos
Public

11
12
11
12
  • 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-11-23T08:09:35.022Z",
          "id": "h88QT9AX6E",
          "name": "B4aAdminUser",
          "roles": {
            "results": []
          },
          "updatedAt": "2019-12-07T11:05:17.579Z",
          "users": {
            "results": [
              {
                "id": "JfNC06DBpj"
              },
              {
                "id": "Z2N1BWeAq5"
              }
            ]
          }
        }
      ]
    }
  }
}