Skip to content

Commit 0049703

Browse files
frodesundbyjhrv
andcommitted
add delete job functionality to graph
Co-authored-by: Johnny Horvi <[email protected]>
1 parent c69b4a7 commit 0049703

File tree

5 files changed

+353
-1
lines changed

5 files changed

+353
-1
lines changed

internal/graph/gengql/generated.go

+292-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/graph/graphqls/naisjob.graphqls

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
extend type Mutation {
2+
deleteJob(
3+
"The name of the naisjob."
4+
name: String!
5+
6+
"The name of the team who owns the naisjob."
7+
team: Slug!
8+
9+
"The environment the naisjob is deployed to."
10+
env: String!
11+
): DeleteJobResult!
12+
}
13+
type DeleteJobResult {
14+
"Whether the job was deleted or not."
15+
deleted: Boolean!
16+
error: String
17+
}
118
extend type Query {
219
"Get a naisjob by name, team and env."
320
naisjob(

0 commit comments

Comments
 (0)