Query
query LineageGraph($input: LineageGraphInput!) {
lineageGraph(input: $input) {
edges {
description
downstream {
catalogAsset {
__typename
}
field
}
id
origin
sqlQuery
tags {
createdAt
id
key
origin
updatedAt
value
}
}
nodes {
assetType
createdAt
description
descriptions {
description
origin
}
externalTags {
createdAt
id
key
origin
updatedAt
value
}
id
}
stats {
totalAssetCount
totalEdgeCount
totalSourceCount
}
truncated
}
}Variables
{
"input": {
"catalogAssetId": "value",
"limit": 1
}
}Response
{
"data": {
"lineageGraph": {
"edges": [
{
"description": "string",
"downstream": {
"catalogAsset": {
"__typename": "CatalogAsset"
},
"field": "value"
},
"id": "value",
"origin": "DBT",
"sqlQuery": "string",
"tags": [
{
"createdAt": "value",
"id": "value",
"key": "string",
"origin": "CATALOG_REFRESH",
"updatedAt": "value",
"value": "string"
}
]
}
],
"nodes": [
{
"assetType": "DASHBOARD",
"createdAt": "value",
"description": "string",
"descriptions": [
{
"description": "string",
"origin": "CATALOG_REFRESH"
}
],
"externalTags": [
{
"createdAt": "value",
"id": "value",
"key": "string",
"origin": "CATALOG_REFRESH",
"updatedAt": "value",
"value": "string"
}
],
"id": "value"
}
],
"stats": {
"totalAssetCount": 1,
"totalEdgeCount": 1,
"totalSourceCount": 1
},
"truncated": true
}
}
}Queries
lineageGraph
Get a lineage graph. Requires LINEAGE_READ permissions.
QUERY
lineageGraph(input: LineageGraphInput!): LineageGraph!Arguments
input
required
Returns
edges
[LineageEdge!]!
nodes
[CatalogAsset!]!
stats
truncated
Boolean!
Whether edges around the asset were left out to stay within limit.
When the edges that touch the asset are more than limit, only
limit of them are returned.
Is in beta and can be changed without notice.
Query
query LineageGraph($input: LineageGraphInput!) {
lineageGraph(input: $input) {
edges {
description
downstream {
catalogAsset {
__typename
}
field
}
id
origin
sqlQuery
tags {
createdAt
id
key
origin
updatedAt
value
}
}
nodes {
assetType
createdAt
description
descriptions {
description
origin
}
externalTags {
createdAt
id
key
origin
updatedAt
value
}
id
}
stats {
totalAssetCount
totalEdgeCount
totalSourceCount
}
truncated
}
}Variables
{
"input": {
"catalogAssetId": "value",
"limit": 1
}
}Response
{
"data": {
"lineageGraph": {
"edges": [
{
"description": "string",
"downstream": {
"catalogAsset": {
"__typename": "CatalogAsset"
},
"field": "value"
},
"id": "value",
"origin": "DBT",
"sqlQuery": "string",
"tags": [
{
"createdAt": "value",
"id": "value",
"key": "string",
"origin": "CATALOG_REFRESH",
"updatedAt": "value",
"value": "string"
}
]
}
],
"nodes": [
{
"assetType": "DASHBOARD",
"createdAt": "value",
"description": "string",
"descriptions": [
{
"description": "string",
"origin": "CATALOG_REFRESH"
}
],
"externalTags": [
{
"createdAt": "value",
"id": "value",
"key": "string",
"origin": "CATALOG_REFRESH",
"updatedAt": "value",
"value": "string"
}
],
"id": "value"
}
],
"stats": {
"totalAssetCount": 1,
"totalEdgeCount": 1,
"totalSourceCount": 1
},
"truncated": true
}
}
}