mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-14 12:16:52 +00:00
82 lines
1.7 KiB
GraphQL
82 lines
1.7 KiB
GraphQL
query getDomain($urn: String!) {
|
|
domain(urn: $urn) {
|
|
urn
|
|
id
|
|
type
|
|
properties {
|
|
name
|
|
description
|
|
}
|
|
parentDomains {
|
|
...parentDomainsFields
|
|
}
|
|
ownership {
|
|
...ownershipFields
|
|
}
|
|
institutionalMemory {
|
|
elements {
|
|
url
|
|
author {
|
|
urn
|
|
username
|
|
}
|
|
description
|
|
created {
|
|
actor
|
|
time
|
|
}
|
|
}
|
|
}
|
|
autoRenderAspects: aspects(input: { autoRenderOnly: true }) {
|
|
...autoRenderAspectFields
|
|
}
|
|
...domainEntitiesFields
|
|
}
|
|
}
|
|
|
|
query listDomains($input: ListDomainsInput!) {
|
|
listDomains(input: $input) {
|
|
start
|
|
count
|
|
total
|
|
domains {
|
|
urn
|
|
id
|
|
type
|
|
properties {
|
|
name
|
|
description
|
|
}
|
|
parentDomains {
|
|
...parentDomainsFields
|
|
}
|
|
ownership {
|
|
...ownershipFields
|
|
}
|
|
...domainEntitiesFields
|
|
}
|
|
}
|
|
}
|
|
|
|
query getDomainChildrenCount($urn: String!) {
|
|
domain(urn: $urn) {
|
|
urn
|
|
type
|
|
children: relationships(input: { types: ["IsPartOf"], direction: INCOMING, start: 0, count: 0 }) {
|
|
total
|
|
}
|
|
}
|
|
}
|
|
|
|
mutation createDomain($input: CreateDomainInput!) {
|
|
createDomain(input: $input)
|
|
}
|
|
|
|
mutation moveDomain($input: MoveDomainInput!) {
|
|
moveDomain(input: $input)
|
|
}
|
|
|
|
mutation deleteDomain($urn: String!) {
|
|
deleteDomain(urn: $urn)
|
|
}
|