datahub/datahub-web-react/src/graphql/genericLineage.graphql
Gabe Lyons 851e00ba9f
feat(lineage): implement support for datasets, charts and dashboards downstream lineage fetching in a generic way (#2397)
Co-authored-by: Dexter Lee <dexter@acryl.io>
Co-authored-by: Brian <brianwebtek@gmail.com>
Co-authored-by: John Joyce <john@acryl.io>
Co-authored-by: Harshal Sheth <hsheth2@gmail.com>
2021-04-23 00:18:39 -07:00

135 lines
3.0 KiB
GraphQL

fragment shallowLineageFields on EntityWithRelationships {
downstreamLineage {
entities {
entity {
urn
type
}
}
}
upstreamLineage {
entities {
entity {
urn
type
}
}
}
}
fragment upstreamRelationshipFields on UpstreamEntityRelationships {
entities {
entity {
urn
type
downstreamLineage {
entities {
entity {
urn
type
}
}
}
upstreamLineage {
entities {
entity {
urn
type
}
}
}
... on DataJob {
urn
type
dataFlow {
urn
type
orchestrator
flowId
cluster
}
jobId
info {
name
description
externalUrl
}
}
... on Dashboard {
urn
type
tool
dashboardId
info {
externalUrl
name
description
}
}
... on Chart {
tool
chartId
info {
name
description
inputs {
urn
}
}
}
... on Dataset {
urn
name
description
platform {
name
info {
logoUrl
}
}
}
}
}
}
fragment downstreamRelationshipFields on DownstreamEntityRelationships {
entities {
entity {
urn
type
... on DataJob {
...dataJobFields
...shallowLineageFields
}
... on Dashboard {
...dashboardFields
...shallowLineageFields
}
... on Chart {
tool
chartId
info {
name
description
inputs {
urn
}
}
...shallowLineageFields
}
... on Dataset {
urn
name
description
platform {
name
info {
logoUrl
}
}
...shallowLineageFields
}
}
}
}