SurrealDB Docs Logo

Enter a search query

Sending queries with GraphQL (experimental)

The GraphQL view in Surrealist allows you to write, execute, and visualize GraphQL queries in real-time. You can see the results of your queries in JSON structure returned by GraphQL.

Important

GraphQL is an experimental feature. We cannot guarantee that it will provide the same security guarantees as SurrealQL. It is not recommended for production use. We welcome your feedback and contributions to help improve the feature and make it more robust.

Surrealist GraphQL query

Refetch schema

In the GraphQL view, you can refetch the schema by clicking the refresh button in the top right corner. This will refetch the schema from the database and update the GraphQL view.

Formatting query

Additionally, you can format your query by clicking the format button in the top right corner. This will format your query to the GraphQL syntax.

Variable view

When working with variables, you can view them by clicking the variables button in the top right corner. This will show you the variables that you can use in your query.

You can also infer the variables from the query by clicking the infer variables button in the top right corner. This will infer the variables from the query and show you the variables that you can use in your query.

Learn more

To learn more about using the GraphQL view, check the Querying via GraphQL documentation.

On this page

© SurrealDB GitHub Discord Community Cloud Features Releases Install