Target Management via the GraphQL API
Learn how to manage targets via the Hive Console GraphQL API.
Targets can be managed via the Hive Console GraphQL API. For more information, please refer to our target documentation.
Retrieve a Single Target
Use the Query.target field to retrieve a target either by its id or slug selector.
Retrieve a List of Targets within a Project
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.
Create a Target
Use the Mutation.createTarget field for creating a new target within a project.
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.
Update the Breaking Change Configuration
Use the Mutation.updateTargetConditionalBreakingChangeConfiguration field for updating the
conditional breaking change configuration.
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).
Delete a Target
Use the Mutation.deleteTarget field for deleting a target within a project.