Introduction
This tool validates GraphQL queries against a schema defined using Schema Definition Language (SDL) so that callers know they need to update their GraphQL queries and their GraphQL responders to match the current schema.This tool requires a validate license.See Validating Incoming Requests for an example of using validators like this one in a common workflow.
Attaching a GraphQL Query Validator to Existing Tools
You can attach a GraphQL Query Validator tool to PVA responders or other tools that exchange data in GraphQL format.
- Right-click on a tool and choose Add Output...
Select the traffic option you want to validate and choose GraphQL Query Validator then click Finish.
- Enter the location or URL of an SDL or an introspection URL in the GraphQL SDL or Introspection URL field. You can also click Browse to navigate to a local SDL file.
- You can also reference an environment variable using the
${variable-name}syntax if it's defined in the suite. The resolved URL will be displayed when referencing the variable.
- You can also reference an environment variable using the
- Enable Persist as Relative Path if you want the path to this file to be saved as a path that is relative to the current configuration file.
When the client executes, an error will be reported if a query does not conform to the SDL.