2020-07-05 01:02:57 +02:00
|
|
|
extend type Mutation {
|
2020-08-01 03:01:14 +02:00
|
|
|
createProject(input: NewProject!): Project! @hasRole(roles: [ADMIN], level: TEAM, type: TEAM)
|
|
|
|
deleteProject(input: DeleteProject!):
|
|
|
|
DeleteProjectPayload! @hasRole(roles: [ADMIN], level: PROJECT, type: PROJECT)
|
|
|
|
updateProjectName(input: UpdateProjectName):
|
|
|
|
Project! @hasRole(roles: [ADMIN], level: PROJECT, type: PROJECT)
|
2020-07-05 01:02:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input NewProject {
|
|
|
|
userID: UUID!
|
|
|
|
teamID: UUID!
|
|
|
|
name: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
input UpdateProjectName {
|
|
|
|
projectID: UUID!
|
|
|
|
name: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
input DeleteProject {
|
|
|
|
projectID: UUID!
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteProjectPayload {
|
|
|
|
ok: Boolean!
|
|
|
|
project: Project!
|
|
|
|
}
|
|
|
|
|