datahub/datahub-web-react/src/graphql/glossaryTerm.graphql
Alexey Kravtsov 79aa66ab0a
feat(frontend): add additional tabs to glossary terms view (#7392)
Adds tabs for "Contained by" and "Inherited by" on the Glossary Related Terms tab.
2023-02-22 16:30:47 -05:00

108 lines
2.7 KiB
GraphQL

query getGlossaryTerm($urn: String!, $start: Int, $count: Int) {
glossaryTerm(urn: $urn) {
urn
type
exists
name
hierarchicalName
isRelatedTerms: relationships(input: { types: ["IsA"], direction: OUTGOING, start: $start, count: $count }) {
start
count
total
relationships {
entity {
... on GlossaryTerm {
urn
}
}
}
}
hasRelatedTerms: relationships(input: { types: ["HasA"], direction: OUTGOING, start: $start, count: $count }) {
start
count
total
relationships {
entity {
... on GlossaryTerm {
urn
}
}
}
}
isAChildren: relationships(input: { types: ["IsA"], direction: INCOMING, start: $start, count: $count }) {
start
count
total
relationships {
entity {
... on GlossaryTerm {
urn
hierarchicalName
}
}
}
}
containedBy: relationships(input: { types: ["HasA"], direction: INCOMING, start: $start, count: $count }) {
start
count
total
relationships {
entity {
... on GlossaryTerm {
urn
}
}
}
}
parentNodes {
...parentNodesFields
}
ownership {
...ownershipFields
}
domain {
...entityDomain
}
institutionalMemory {
...institutionalMemoryFields
}
properties {
name
description
termSource
sourceRef
sourceUrl
rawSchema
customProperties {
key
value
}
}
schemaMetadata(version: 0) {
...schemaMetadataFields
}
deprecation {
...deprecationFields
}
privileges {
canManageEntity
}
}
}
mutation createGlossaryTerm($input: CreateGlossaryEntityInput!) {
createGlossaryTerm(input: $input)
}
mutation createGlossaryNode($input: CreateGlossaryEntityInput!) {
createGlossaryNode(input: $input)
}
mutation addRelatedTerms($input: RelatedTermsInput!) {
addRelatedTerms(input: $input)
}
mutation removeRelatedTerms($input: RelatedTermsInput!) {
removeRelatedTerms(input: $input)
}