Developers

The Developers page is the GraphQL Explorer, an interactive query editor for the Guardrails GraphQL API. Click Developers in the sidebar to open it and run queries and mutations against your workspace data without leaving the console.

GraphQL Explorer

Write a query in the left panel, then click the play button (or use the keyboard shortcut) to run it and see the results on the right.

Developers page showing the GraphQL Explorer with a query and its JSON results

The explorer provides:

For tips on writing effective queries, see GraphQL Tips and Best Practices.

Calculated Policy Builder

The Calculated Policy Builder is a related developer tool for creating and testing calculated policies, which are dynamic policy values derived from live resource data using GraphQL queries and Nunjucks templates.

The builder is not a tab on the Developers page. You launch it from the policy setting editor: on the Create Policy Setting (or Update Policy Setting) form, click Enable calculated mode beside the Setting label, then click Launch calculated policy builder. It opens at /developers/calculated-policy-builder and returns you to the form when you're done.

Calculated Policy Builder showing the four-step workflow with a GCP bucket test resource

The builder walks you through four steps:

  1. Choose the policy type and a test resource: The policy type comes from the setting you're editing; pick a resource to test against.
  2. Query data using GraphQL: Fetch the live data your template needs.
  3. Transform using a Jinja2/Nunjucks template: Compute the policy value from the query output.
  4. Validate the result: Confirm the value is valid against the policy type schema.

As you work through the steps, the builder shows live results so you can see exactly what your calculated policy will produce. For a full walkthrough, see Create a Calculated Policy.

For Nunjucks templating tips, see Nunjucks Best Practices. For troubleshooting, see Resolve Calculated Policy Errors.

Developer Guides

For broader developer topics, including AI-assisted development, the MCP server, and GraphQL/Nunjucks reference material, see Developer Guides in the Guides section.