2022-01-27 22:02:41 -08:00
|
|
|
query getDomain($urn: String!) {
|
|
|
|
domain(urn: $urn) {
|
|
|
|
urn
|
|
|
|
id
|
2023-09-18 16:14:33 -04:00
|
|
|
type
|
2022-01-27 22:02:41 -08:00
|
|
|
properties {
|
|
|
|
name
|
|
|
|
description
|
|
|
|
}
|
2023-09-18 16:14:33 -04:00
|
|
|
parentDomains {
|
|
|
|
...parentDomainsFields
|
|
|
|
}
|
2022-01-27 22:02:41 -08:00
|
|
|
ownership {
|
|
|
|
...ownershipFields
|
|
|
|
}
|
2024-03-20 15:25:36 -04:00
|
|
|
privileges {
|
|
|
|
...entityPrivileges
|
|
|
|
}
|
2022-01-27 22:02:41 -08:00
|
|
|
institutionalMemory {
|
|
|
|
elements {
|
|
|
|
url
|
2024-11-25 09:49:16 -05:00
|
|
|
actor {
|
|
|
|
...resolvedActorFields
|
2022-01-27 22:02:41 -08:00
|
|
|
}
|
|
|
|
description
|
|
|
|
created {
|
|
|
|
actor
|
|
|
|
time
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-01-23 16:30:02 -05:00
|
|
|
autoRenderAspects: aspects(input: { autoRenderOnly: true }) {
|
|
|
|
...autoRenderAspectFields
|
|
|
|
}
|
2024-02-08 12:21:05 -05:00
|
|
|
structuredProperties {
|
|
|
|
properties {
|
|
|
|
...structuredPropertiesFields
|
|
|
|
}
|
|
|
|
}
|
2024-02-13 15:02:52 -05:00
|
|
|
forms {
|
|
|
|
...formsFields
|
|
|
|
}
|
2025-03-05 17:45:28 -05:00
|
|
|
displayProperties {
|
|
|
|
...displayPropertiesFields
|
|
|
|
}
|
2023-12-13 17:12:48 -08:00
|
|
|
...domainEntitiesFields
|
2025-01-29 20:42:01 -05:00
|
|
|
...notes
|
2022-01-27 22:02:41 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
query listDomains($input: ListDomainsInput!) {
|
|
|
|
listDomains(input: $input) {
|
|
|
|
start
|
|
|
|
count
|
|
|
|
total
|
|
|
|
domains {
|
|
|
|
urn
|
2023-09-18 16:14:33 -04:00
|
|
|
id
|
|
|
|
type
|
2022-01-27 22:02:41 -08:00
|
|
|
properties {
|
|
|
|
name
|
|
|
|
description
|
|
|
|
}
|
2023-09-18 16:14:33 -04:00
|
|
|
parentDomains {
|
|
|
|
...parentDomainsFields
|
|
|
|
}
|
2022-01-27 22:02:41 -08:00
|
|
|
ownership {
|
|
|
|
...ownershipFields
|
|
|
|
}
|
2025-03-05 17:45:28 -05:00
|
|
|
displayProperties {
|
|
|
|
...displayPropertiesFields
|
|
|
|
}
|
2023-09-18 16:14:33 -04:00
|
|
|
...domainEntitiesFields
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
query getDomainChildrenCount($urn: String!) {
|
|
|
|
domain(urn: $urn) {
|
|
|
|
urn
|
|
|
|
type
|
|
|
|
children: relationships(input: { types: ["IsPartOf"], direction: INCOMING, start: 0, count: 0 }) {
|
|
|
|
total
|
2022-01-27 22:02:41 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation createDomain($input: CreateDomainInput!) {
|
|
|
|
createDomain(input: $input)
|
2022-06-29 22:41:41 -04:00
|
|
|
}
|
|
|
|
|
2023-09-18 16:14:33 -04:00
|
|
|
mutation moveDomain($input: MoveDomainInput!) {
|
|
|
|
moveDomain(input: $input)
|
|
|
|
}
|
|
|
|
|
2022-06-29 22:41:41 -04:00
|
|
|
mutation deleteDomain($urn: String!) {
|
|
|
|
deleteDomain(urn: $urn)
|
|
|
|
}
|
2025-01-29 20:42:01 -05:00
|
|
|
|
|
|
|
# We should replace this with a cached summary object on the domain
|
|
|
|
query getDomainEntitySummary($urn: String!) {
|
|
|
|
aggregateAcrossEntities(
|
|
|
|
input: {
|
|
|
|
types: []
|
|
|
|
query: "*"
|
|
|
|
facets: ["_entityType␞typeNames", "_entityType"]
|
|
|
|
orFilters: [
|
|
|
|
{
|
|
|
|
and: [
|
|
|
|
{ field: "_entityType", values: ["DATA_PRODUCT"], value: "DATA_PRODUCT", negated: true }
|
|
|
|
{ field: "domains", values: [$urn], value: $urn }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
searchFlags: { skipCache: true }
|
|
|
|
}
|
|
|
|
) {
|
|
|
|
facets {
|
|
|
|
...facetFields
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|