Use the Project.targets field to retrieve a list of targets within the organization. Note:
This field will currently return all targets within the project.
Use the Mutation.createTarget field for creating a new target within a project.
mutation CreateTarget($input: CreateTargetInput!) { createTarget(input: $input) { ok { createdTarget { id slug } } error { message } }}
Update the Target GraphQL Endpoint URL
Use the Mutation.updateTargetGraphQLEndpointUrl field for updating the GraphQL endpoint url that
is used in the laboratory for querying the GraphQL server.
Use the Mutation.updateTargetConditionalBreakingChangeConfiguration field for updating the
conditional breaking change configuration.
mutation UpdateTargetConditionalBreakingChangeConfiguration( $input: UpdateTargetConditionalBreakingChangeConfigurationInput!) { updateTargetConditionalBreakingChangeConfiguration(input: $input) { ok { target { id slug conditionalBreakingChangeConfiguration { isEnabled period percentage requestCount breakingChangeFormula targets { id slug } excludedClients } } } error { message } }}
Update Dangerous Change Classification
Use the Mutation.updateTargetDangerousChangeClassification field to set whether dangerous schema
changes should fail a schema check (if they are not safe based on usage).