faint-gold-51647
12/13/2023, 5:36 PMupdateDescription. I realize that it's incubating, but the docs mention that it currently only supports Dataset Schema Fields, Containers. So, I thought it should work, but looks like I was wrong. My mutation (I used GraphQL) looks like this:
mutation updateDescription {
updateDescription(
input: {
description: "My description",
resourceUrn: "urn:this:is:(urn:some:urn:),fieldname)"
}
)
}
The response I get is:
"message": "An unknown error occurred."
and
"extensions": {
"code": 500,
"type": "SERVER_ERROR",
"classification": "DataFetchingException"
}
What am I doing wrong? And is there a better way to add/change field descriptions programmatically?faint-gold-51647
12/13/2023, 5:55 PMfaint-gold-51647
12/13/2023, 6:01 PMmutation updateDescription {
updateDescription(
input: {
description: "My description",
resourceUrn: "My dataset URN, not that of the field!!!",
subResource: "field_name, that is the ending of the field URN",
subResourceType: DATASET_FIELD
}
)
}
Now it works.
2/ In fact, the whole thing is working on GraphQL API, so basically, we simply use all the same queries in our scripts. So as soon as we need a reference, we can open DevTools > Network and check out the payload of the necessary request.rich-barista-93413
12/19/2023, 5:50 AM