forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdataJob.graphql
54 lines (52 loc) · 1.51 KB
/
dataJob.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
query getDataJob($urn: String!) {
dataJob(urn: $urn) {
...dataJobFields
parentFlow: relationships(input: { types: ["IsPartOf"], direction: OUTGOING, start: 0, count: 1 }) {
...fullRelationshipResults
}
incoming: relationships(
input: {
types: ["DownstreamOf", "Consumes", "Produces", "TrainedBy"]
direction: INCOMING
start: 0
count: 100
}
) {
...fullRelationshipResults
}
outgoing: relationships(
input: { types: ["DownstreamOf", "Consumes", "Produces"], direction: OUTGOING, start: 0, count: 100 }
) {
...fullRelationshipResults
}
upstream: lineage(input: { direction: UPSTREAM, start: 0, count: 100 }) {
...partialLineageResults
}
downstream: lineage(input: { direction: DOWNSTREAM, start: 0, count: 100 }) {
...partialLineageResults
}
status {
removed
}
runs(start: 0, count: 20) {
count
start
total
}
deprecation {
...deprecationFields
}
}
}
mutation updateDataJob($urn: String!, $input: DataJobUpdateInput!) {
updateDataJob(urn: $urn, input: $input) {
urn
}
}
query getDataJobRuns($urn: String!, $start: Int!, $count: Int!) {
dataJob(urn: $urn) {
runs(start: $start, count: $count) {
...runResults
}
}
}