mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-28 11:59:54 +00:00

Co-authored-by: ppurswan <ppurswan@visa.com> Co-authored-by: PrithviVISA <140717353+PrithviVISA@users.noreply.github.com> Co-authored-by: aditigup <aditigup@visa.com> Co-authored-by: Bharti, Aakash <aabharti@visa.com> Co-authored-by: Singh, Himanshu <hisingh@visa.com> Co-authored-by: Shukla, Amit <amishukl@visa.com> Co-authored-by: Kartikey Khandelwal <kakhande@visa.com>
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
|
|
}
|
|
}
|