Inputs
About Inputs and Mutations
Inputs are used to pass data into mutations, which are functions used to create or modify data using the API. The input type is defined as part of the mutation definition, and the required fields are passed as a variable when the mutation is called.
For more information see GraphQL Input Types in the GraphQL documentation.
For example, the CreateProductInput
input type is used to pass data into the createProduct
mutation:
mutation CreateProductMutation($input: CreateProductInput!) {
createProduct(input: $input) {
id
name
createdBy {
id
email
}
}
}
"input": {
"name": product_name,
"group": business_unit_id,
"createdBy": created_by_user_id,
"ctx": {
"businessUnit": business_unit_id
}
}
All Inputs
- AddProcessingStatusInput
- ArtifactLinkInput
- AssetVersionSequenceInput
- AssetVersionSequenceItemInput
- AuditLogsArtifactMutationInput
- AuditLogsUserMutationInput
- CVSSBaseMetricV2Input
- CVSSBaseMetricV3Input
- CVSSMetricV2Input
- CVSSMetricV3Input
- CVSSMetricV4Input
- CompleteProcessingEventInput
- CreateArtifactInput
- CreateAssetInput
- CreateAssetVersionInput
- CreateProductInput
- CreateTestInput
- DeleteAssetVersionsByIdsResolverInput
- DeleteAssetsByIdsResolverInput
- DeleteFindingsByIdsResolverInput
- DeleteProductsByIdsResolverInput
- DeleteScisByIdsResolverInput
- DeleteTestsByIdsResolverInput
- DestinationAssetInput
- EditFindingInput
- EncodedDataInput
- ExternalReferencesInput
- FindingConfidenceInput
- HashInput
- LicenseExpressionsInput
- MergeSoftwareComponentFieldOverrideInput
- OSPatchesMutationInput
- OrganizationalContactInput
- PartInput
- PollForProcessingStatusesTimeoutInput
- PreviewCreateSoftwareComponentInstanceFullInput
- ProductIdentifiersInput
- PropertiesInput
- ResolvedIssueSourceInput
- SoftwareComponentInstanceConfidenceInput
- SoftwareComponentInstanceRelationshipEdgeInput
- SoftwareComponentInstanceRelationshipInput
- SoftwareComponentRelationshipInput
- SoftwareComponentRelationshipVertexInput
- SoftwareIdentifiersInput
- SupplierInput
- UpdateFindingStatusesInput
- generateTestResultUploadUrlInput
- startMultipartUploadInput
- generateUploadPartUrlInput
- CompleteMultipartUploadInput
- completeTestResultUploadInput
This page was generated: 2024-11-06