mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-27 10:04:52 +00:00
102 lines
2.1 KiB
GraphQL
102 lines
2.1 KiB
GraphQL
query getDataProduct($urn: String!) {
|
|
dataProduct(urn: $urn) {
|
|
urn
|
|
type
|
|
...dataProductFields
|
|
privileges {
|
|
...entityPrivileges
|
|
}
|
|
autoRenderAspects: aspects(input: { autoRenderOnly: true }) {
|
|
...autoRenderAspectFields
|
|
}
|
|
structuredProperties {
|
|
properties {
|
|
...structuredPropertiesFields
|
|
}
|
|
}
|
|
forms {
|
|
...formsFields
|
|
}
|
|
...notes
|
|
}
|
|
}
|
|
|
|
query getDataProductsList($input: SearchAcrossEntitiesInput!) {
|
|
searchAcrossEntities(input: $input) {
|
|
searchResults {
|
|
entity {
|
|
... on DataProduct {
|
|
urn
|
|
type
|
|
properties {
|
|
name
|
|
description
|
|
numAssets
|
|
}
|
|
domain {
|
|
...entityDomain
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fragment dataProductFields on DataProduct {
|
|
...dataProductSearchFields
|
|
properties {
|
|
customProperties {
|
|
key
|
|
value
|
|
}
|
|
}
|
|
institutionalMemory {
|
|
...institutionalMemoryFields
|
|
}
|
|
}
|
|
|
|
fragment dataProductSearchFields on DataProduct {
|
|
urn
|
|
type
|
|
properties {
|
|
name
|
|
description
|
|
externalUrl
|
|
}
|
|
ownership {
|
|
...ownershipFields
|
|
}
|
|
tags {
|
|
...globalTagsFields
|
|
}
|
|
glossaryTerms {
|
|
...glossaryTerms
|
|
}
|
|
domain {
|
|
...entityDomain
|
|
}
|
|
entities(input: { start: 0, count: 0, query: "*" }) {
|
|
total
|
|
}
|
|
}
|
|
|
|
mutation createDataProduct($input: CreateDataProductInput!) {
|
|
createDataProduct(input: $input) {
|
|
...dataProductSearchFields
|
|
}
|
|
}
|
|
|
|
mutation updateDataProduct($urn: String!, $input: UpdateDataProductInput!) {
|
|
updateDataProduct(urn: $urn, input: $input) {
|
|
...dataProductSearchFields
|
|
}
|
|
}
|
|
|
|
mutation deleteDataProduct($urn: String!) {
|
|
deleteDataProduct(urn: $urn)
|
|
}
|
|
|
|
mutation batchSetDataProduct($input: BatchSetDataProductInput!) {
|
|
batchSetDataProduct(input: $input)
|
|
}
|