You can run queries on real Scope data using any HTTP compliant client (HTTP Client) or GraphQL integrated development environment (GraphQL IDE). GraphQL IDEs are typically easier to work with because they include docs, syntax highlighting, and validation errors.
...
Scope GraphQL Explorer is an instance of GraphiQL (a GraphQL IDE) that is available in-browser at https://cms.scopear.com/api/v3/graphql/explorer.
Note |
---|
Note: The Scope GraphQL Explorer has been temporarily disabled, but you can still explore the graph using a local GraphiQL client, or any other similar client (see below). |
Using GraphiQL
To use the GraphiQL app, download and install it from https://www.electronjs.org/apps/graphiql.
...
If you receive an authorization error, contact your internal administrator to request that additional privileges be added to your user account (see “Managing Access Control Rights”).
Currently, no documentation is available which describes the precise rules governing the authorization of each user license type, however Scope intends to add this documentation in the near futureUnauthorized nodes that are part of many-to-one relationships (aka “Connections”) are automatically pruned from the response without triggering an error, whereas unauthorized nodes that belong to one-to-one relationships trigger an error.
...
By way of example, the following query will trigger the following authorization error response when the user executing the query isn’t authorized to read the node identified by id YQLXlUig57gDr1aAak2ojlH98qqDttCUIUwR_Y-MPJRWrdX0sgvvjiOj6fXusYeG
:
...
Code Block |
---|
{ "data": { "node": null }, "errors": [ { "message": "Not authorized to read object", "locations": [ { "line": 23, "column": 3 } ], "path": [ "node" ] } ] } |
...
But, the node in the previous example will be silently removed from the response to the following query without triggering an error:
Code Block |
---|
query { viewer { organization { scenarios { nodes { sessions { nodes { id } } } } } } } |
...
Note |
---|
Scope recommends checking for errors before using data in a production environment. In GraphQL, failure is not total: portions of GraphQL queries may succeed while others fail. |
If you need additional help, see Requesting support.
...