mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-29 12:30:07 +00:00
85 lines
1.9 KiB
GraphQL
85 lines
1.9 KiB
GraphQL
![]() |
# Get a business attribute by URN
|
||
|
query getBusinessAttribute($urn: String!) {
|
||
|
businessAttribute(urn: $urn) {
|
||
|
...businessAttributeFields
|
||
|
}
|
||
|
}
|
||
|
|
||
|
query listBusinessAttributes($start: Int!, $count: Int!, $query: String) {
|
||
|
listBusinessAttributes(input: { start: $start, count: $count, query: $query }) {
|
||
|
start
|
||
|
count
|
||
|
total
|
||
|
businessAttributes {
|
||
|
...businessAttributeFields
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fragment businessAttributeFields on BusinessAttribute {
|
||
|
urn
|
||
|
type
|
||
|
ownership {
|
||
|
...ownershipFields
|
||
|
}
|
||
|
properties {
|
||
|
name
|
||
|
description
|
||
|
businessAttributeDataType: type
|
||
|
customProperties {
|
||
|
key
|
||
|
value
|
||
|
associatedUrn
|
||
|
}
|
||
|
lastModified {
|
||
|
time
|
||
|
}
|
||
|
created {
|
||
|
time
|
||
|
}
|
||
|
tags {
|
||
|
tags {
|
||
|
tag {
|
||
|
urn
|
||
|
name
|
||
|
properties {
|
||
|
name
|
||
|
}
|
||
|
}
|
||
|
associatedUrn
|
||
|
}
|
||
|
}
|
||
|
glossaryTerms {
|
||
|
terms {
|
||
|
term {
|
||
|
urn
|
||
|
type
|
||
|
properties {
|
||
|
name
|
||
|
}
|
||
|
}
|
||
|
associatedUrn
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
institutionalMemory {
|
||
|
...institutionalMemoryFields
|
||
|
}
|
||
|
}
|
||
|
|
||
|
mutation createBusinessAttribute($input: CreateBusinessAttributeInput!) {
|
||
|
createBusinessAttribute(input: $input) {
|
||
|
...businessAttributeFields
|
||
|
}
|
||
|
}
|
||
|
|
||
|
mutation deleteBusinessAttribute($urn: String!) {
|
||
|
deleteBusinessAttribute(urn: $urn)
|
||
|
}
|
||
|
|
||
|
mutation updateBusinessAttribute($urn: String!, $input: UpdateBusinessAttributeInput!) {
|
||
|
updateBusinessAttribute(urn: $urn, input: $input) {
|
||
|
...businessAttributeFields
|
||
|
}
|
||
|
}
|