datahub/datahub-web-react/src/graphql/container.graphql
John Joyce c9e6831f08
fea(ui): Add menu action for copying the full name of the asset (#13224)
Co-authored-by: John Joyce <john@Mac-2465.lan>
Co-authored-by: John Joyce <john@Mac-1293.lan>
2025-05-15 13:50:31 -07:00

103 lines
2.2 KiB
GraphQL

query getContainer($urn: String!) {
container(urn: $urn) {
urn
type
exists
lastIngested
platform {
...platformFields
}
properties {
name
qualifiedName
description
externalUrl
customProperties {
key
value
}
}
privileges {
...entityPrivileges
}
editableProperties {
description
}
ownership {
...ownershipFields
}
tags {
...globalTagsFields
}
institutionalMemory {
...institutionalMemoryFields
}
glossaryTerms {
...glossaryTerms
}
subTypes {
typeNames
}
entities(input: { start: 0, count: 1 }) {
total
}
container {
...entityContainer
}
parentContainers {
...parentContainersFields
}
domain {
...entityDomain
}
...entityDataProduct
deprecation {
...deprecationFields
}
dataPlatformInstance {
...dataPlatformInstanceFields
}
status {
removed
}
access {
roles {
role {
urn
}
}
}
autoRenderAspects: aspects(input: { autoRenderOnly: true }) {
...autoRenderAspectFields
}
structuredProperties {
properties {
...structuredPropertiesFields
}
}
forms {
...formsFields
}
browsePathV2 {
...browsePathV2Fields
}
...notes
}
}
# We should replace this with a cached summary object on the container
query getContainerEntitySummary($urn: String!) {
aggregateAcrossEntities(
input: {
types: []
query: "*"
facets: ["_entityType␞typeNames", "_entityType"]
orFilters: [{ and: [{ field: "container", values: [$urn], value: $urn }] }]
}
) {
facets {
...facetFields
}
}
}