Module graphql/mutation_addProjectItem/addProjectItemGenerated

Source

Type Aliases§

Source§

type AddProjectItemResult = Data

Type alias for the successful result data from the add project item mutation.

remarks

This represents the data payload when the mutation executes successfully.

Variables§

Source§

const addProjectItemMutation: string...

GraphQL mutation for adding an item to a GitHub project.

remarks

This mutation adds a content item (such as an issue or pull request) to a GitHub Project V2. It requires the project ID, content ID, and field name as parameters.

example
mutation addProjectItem($projectId:ID!, $contentId:ID!, $fieldName: String!) {
addProjectV2ItemById(input: {projectId: $projectId, contentId: $contentId}) {
item {
id,
fieldValueByName(name: $fieldName) {
... on ProjectV2ItemFieldNumberValue { number },
... on ProjectV2ItemFieldDateValue { date }
}
}
}
}

Classes§

Convert

Utility class for converting between JSON strings and typed objects.

Interfaces§

AddProjectItemRawResult

Raw result interface for the add project item mutation response.

AddProjectV2ItemByIDPayload

Payload interface for the addProjectV2ItemById mutation result.

Data

Data payload interface for the add project item mutation.

Error

Error interface for GraphQL mutation errors.

ProjectV2Item

Project item interface representing an item in a GitHub Project V2.

ProjectV2ItemFieldValue

Field value interface for project item fields.