datahub/datahub-web-react/src/graphql/glossaryNode.graphql

50 lines
1.0 KiB
GraphQL
Raw Normal View History

fragment childGlossaryTerm on GlossaryTerm {
urn
type
name
hierarchicalName
properties {
name
}
}
query getGlossaryNode($urn: String!) {
glossaryNode(urn: $urn) {
urn
type
properties {
name
description
}
ownership {
...ownershipFields
}
parentNodes {
...parentNodesFields
}
children: relationships(
input: {
types: ["IsPartOf"]
direction: INCOMING
start: 0
count: 10000
}
) {
total
relationships {
direction
entity {
type
urn
... on GlossaryNode {
...glossaryNode
}
... on GlossaryTerm {
...childGlossaryTerm
}
}
}
}
}
}