Skip to content

Commit

Permalink
add delete job functionality to graph
Browse files Browse the repository at this point in the history
Co-authored-by: Johnny Horvi <[email protected]>
  • Loading branch information
frodesundby and jhrv committed Mar 18, 2024
1 parent c69b4a7 commit 0049703
Show file tree
Hide file tree
Showing 5 changed files with 353 additions and 1 deletion.
293 changes: 292 additions & 1 deletion internal/graph/gengql/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions internal/graph/graphqls/naisjob.graphqls
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
extend type Mutation {
deleteJob(
"The name of the naisjob."
name: String!

"The name of the team who owns the naisjob."
team: Slug!

"The environment the naisjob is deployed to."
env: String!
): DeleteJobResult!
}
type DeleteJobResult {
"Whether the job was deleted or not."
deleted: Boolean!
error: String
}
extend type Query {
"Get a naisjob by name, team and env."
naisjob(
Expand Down
Loading

0 comments on commit 0049703

Please sign in to comment.