GraphQL cost analysis policy commands

GraphQL cost analysis policy mode provides the commands to compute the cost analysis of a GraphQL target query and response.

To enter the mode, use the global assembly-graphql-cost-analysis command.

While in this mode, use the commands in the following table to define the GraphQL cost analysis policy.

  • To view the current configuration, use the show command.
  • To restore default values, use the reset command.
  • To exit this configuration mode without saving changes to the running configuration, use the cancel command.
  • To exit this configuration mode and save changes to the running configuration, use the exit command.
Table 1. GraphQL cost analysis policy commands
Command Purpose
admin-state This command sets the administrative state for the configuration.
correlation-path This command specifies the part of the API definition that correlates with the policy.
input This command specifies the variable in the API context that contains the GraphQL cost query.
output This command specifies the variable in the API context to store the results of the GraphQL cost analysis policy.
summary This command specifies the brief, descriptive summary for the object instance.
target This command specifies the location of the GraphQL content to analyze with the cost query.
title This command specifies the title for the configuration.