Data sandbox
In the data sandbox environment, you can visualize and interact with a GraphQL schema. It provides a graphical representation of the schema's structure so that you can understand its components and relationships. Also it includes features for querying the schema, executing GraphQL operations, and exploring available data.
The schema browser presents a visual representation of the GraphQL schema, including types, fields, directives, and relationships. This visualization shows the overall structure of the schema and how different types are connected. You can interact with the schema browser to explore its contents interactively. You can click the types and fields to view more details, such as descriptions, arguments, and return types. For more information, see Browsing schema.
The data sandbox environment includes a built-in GraphQL query editor where you can write and execute GraphQL queries against the schema. You can test queries, experiment with different operations, and see the results in real-time. The query editor includes features, such as syntax highlighting, auto-completion, and error highlighting, to assist you in writing valid queries.
Using GraphiQL editor to query data
Use the GraphiQL editor in the data sandbox to query data.
- From the side navigation menu, click Data management.
- To launch the data sandbox, in the Test section, click Launch.
- Use a sample query.
- Click the Use a sample query link.
- Select a query and click Apply.
The criteria editor shows the conditions that are configured for the sample query.
- Click the Result settings tab and configure attributes, pagination, and sorting.
- To test the criteria, click Test criteria.
The data that is returned by the query is shown in the results section of the GraphiQL. Refine the results by adding more conditions by using the GraphiQL editor.
- Use a new query.
- In the Primary data object field, select a data object.
- In the Database view field, select a view.
The default database view is graph.
- In the Criteria editor, add criteria and set whether all, any, or none of them are true.
- Click the Result settings tab and configure attributes, pagination, and sorting.
- To test the criteria, click Test criteria.
The data that is returned by the query is shown in the results section of the GraphiQL. Refine the results further by adding more conditions by using the GraphiQL editor.