mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-30 04:45:28 +00:00
203 lines
4.5 KiB
GraphQL
203 lines
4.5 KiB
GraphQL
![]() |
fragment relationshipFields on Entity {
|
||
|
urn
|
||
|
type
|
||
|
... on DataJob {
|
||
|
...dataJobFields
|
||
|
...dataJobRelationshipsLeaf
|
||
|
editableProperties {
|
||
|
description
|
||
|
}
|
||
|
}
|
||
|
... on Dashboard {
|
||
|
...dashboardRelationshipsLeaf
|
||
|
...dashboardFields
|
||
|
editableProperties {
|
||
|
description
|
||
|
}
|
||
|
}
|
||
|
... on Chart {
|
||
|
tool
|
||
|
chartId
|
||
|
info {
|
||
|
name
|
||
|
description
|
||
|
inputs {
|
||
|
urn
|
||
|
}
|
||
|
}
|
||
|
editableProperties {
|
||
|
description
|
||
|
}
|
||
|
ownership {
|
||
|
...ownershipFields
|
||
|
}
|
||
|
...chartRelationshipsLeaf
|
||
|
}
|
||
|
... on Dataset {
|
||
|
name
|
||
|
description
|
||
|
editableProperties {
|
||
|
description
|
||
|
}
|
||
|
platform {
|
||
|
name
|
||
|
info {
|
||
|
logoUrl
|
||
|
}
|
||
|
}
|
||
|
ownership {
|
||
|
...ownershipFields
|
||
|
}
|
||
|
...datasetRelationshipsLeaf
|
||
|
}
|
||
|
... on MLModelGroup {
|
||
|
urn
|
||
|
type
|
||
|
name
|
||
|
description
|
||
|
origin
|
||
|
platform {
|
||
|
name
|
||
|
info {
|
||
|
displayName
|
||
|
logoUrl
|
||
|
}
|
||
|
}
|
||
|
ownership {
|
||
|
...ownershipFields
|
||
|
}
|
||
|
}
|
||
|
... on MLModel {
|
||
|
urn
|
||
|
type
|
||
|
name
|
||
|
description
|
||
|
origin
|
||
|
platform {
|
||
|
name
|
||
|
info {
|
||
|
displayName
|
||
|
logoUrl
|
||
|
}
|
||
|
}
|
||
|
ownership {
|
||
|
...ownershipFields
|
||
|
}
|
||
|
...mlModelRelationshipsLeaf
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fragment fullRelationshipResults on EntityRelationshipsResult {
|
||
|
start
|
||
|
count
|
||
|
total
|
||
|
relationships {
|
||
|
type
|
||
|
direction
|
||
|
entity {
|
||
|
...relationshipFields
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fragment leafRelationshipResults on EntityRelationshipsResult {
|
||
|
start
|
||
|
count
|
||
|
total
|
||
|
relationships {
|
||
|
type
|
||
|
direction
|
||
|
entity {
|
||
|
urn
|
||
|
type
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fragment dataJobRelationshipsLeaf on DataJob {
|
||
|
incoming: relationships(
|
||
|
input: { types: ["DownstreamOf", "Consumes", "Produces"], direction: INCOMING, start: 0, count: 100 }
|
||
|
) {
|
||
|
...leafRelationshipResults
|
||
|
}
|
||
|
outgoing: relationships(
|
||
|
input: { types: ["DownstreamOf", "Consumes", "Produces"], direction: OUTGOING, start: 0, count: 100 }
|
||
|
) {
|
||
|
...leafRelationshipResults
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fragment datasetRelationshipsLeaf on Dataset {
|
||
|
incoming: relationships(
|
||
|
input: { types: ["DownstreamOf", "Consumes", "Produces"], direction: INCOMING, start: 0, count: 100 }
|
||
|
) {
|
||
|
...leafRelationshipResults
|
||
|
}
|
||
|
outgoing: relationships(
|
||
|
input: { types: ["DownstreamOf", "Consumes", "Produces"], direction: OUTGOING, start: 0, count: 100 }
|
||
|
) {
|
||
|
...leafRelationshipResults
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fragment chartRelationshipsLeaf on Chart {
|
||
|
inputs: relationships(input: { types: ["Consumes"], direction: OUTGOING, start: 0, count: 100 }) {
|
||
|
...leafRelationshipResults
|
||
|
}
|
||
|
dashboards: relationships(input: { types: ["Contains"], direction: INCOMING, start: 0, count: 100 }) {
|
||
|
...leafRelationshipResults
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fragment dashboardRelationshipsLeaf on Dashboard {
|
||
|
charts: relationships(input: { types: ["Contains"], direction: OUTGOING, start: 0, count: 100 }) {
|
||
|
...leafRelationshipResults
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fragment mlModelRelationshipsLeaf on MLModel {
|
||
|
incoming: relationships(
|
||
|
input: {
|
||
|
types: ["DownstreamOf", "Consumes", "Produces", "TrainedBy", "MemberOf"]
|
||
|
direction: INCOMING
|
||
|
start: 0
|
||
|
count: 100
|
||
|
}
|
||
|
) {
|
||
|
...leafRelationshipResults
|
||
|
}
|
||
|
outgoing: relationships(
|
||
|
input: {
|
||
|
types: ["DownstreamOf", "Consumes", "Produces", "TrainedBy", "MemberOf"]
|
||
|
direction: OUTGOING
|
||
|
start: 0
|
||
|
count: 100
|
||
|
}
|
||
|
) {
|
||
|
...leafRelationshipResults
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fragment mlModelGroupRelationshipsLeaf on MLModelGroup {
|
||
|
incoming: relationships(
|
||
|
input: {
|
||
|
types: ["DownstreamOf", "Consumes", "Produces", "TrainedBy", "MemberOf"]
|
||
|
direction: INCOMING
|
||
|
start: 0
|
||
|
count: 100
|
||
|
}
|
||
|
) {
|
||
|
...leafRelationshipResults
|
||
|
}
|
||
|
outgoing: relationships(
|
||
|
input: {
|
||
|
types: ["DownstreamOf", "Consumes", "Produces", "TrainedBy", "MemberOf"]
|
||
|
direction: OUTGOING
|
||
|
start: 0
|
||
|
count: 100
|
||
|
}
|
||
|
) {
|
||
|
...leafRelationshipResults
|
||
|
}
|
||
|
}
|