Related queries and mutations in Catalog and lineage. Each has its own section.
Queries
getAssetLineage (query)
getAssetLineage is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Return the typed lineage graph around the given job: the tables it reads and writes and the jobs it triggers or is triggered by, with each edge's relationship type. Task nodes and direct table-to-table edges are not included — job-mediated paths carry those relationships.
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String! | MCON of the asset at the root of the graph. V1 accepts job MCONs. |
direction | LineageGraphTraversalDirection | Direction to traverse from the root asset. Defaults to both directions — the asset's full neighborhood. |
hops | Int | Maximum traversal depth. Defaults to 30; larger values are capped at 30. |
limit | Int | Node budget for the traversal. Defaults to 10000; larger values are capped at 10000. When the budget is hit, the response is marked truncated rather than silently partial. |
Returns
AssetLineageResult!
Example
query GetAssetLineage($mcon: String!) {
getAssetLineage(mcon: $mcon) {
hasTaskData
}
}Types used only by getAssetLineage
getAssetLineageAssetLineageResult
AssetLineageResultObject type. Response of getAssetLineage — the typed graph around a job, plus
the metadata needed to render it honestly.
| Field | Type | Description |
|---|---|---|
graph | JobLineageGraph! | The typed node/edge graph around the root job. |
truncation | AssetLineageTruncation! | Clipping information — distinguishes an empty graph from a clipped one. |
hasTaskData | Boolean! | Whether the job has tasks recorded. Distinguishes 'job has no tasks' from 'job has tasks but no lineage edges arrived' — the latter is a job whose tasks are recorded but that produced no lineage, e.g. an Airflow DAG that never sent a result callback. |
AssetLineageTruncation
AssetLineageTruncationObject type. Whether the lineage traversal was clipped by its node limit.
| Field | Type | Description |
|---|---|---|
truncated | Boolean! | True when the traversal hit the node limit — the graph is clipped, not complete. |
limit | Int! | The node limit the traversal ran with. |
Related types
JobLineageGraph, LineageGraphTraversalDirection
getDerivedTablesPartialLineage (query)
getDerivedTablesPartialLineage is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Tables and its columns that are influenced by the source table and column. Note we only return columns that are influenced by the source column in the response.
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String | source table mcon |
column | String | source column |
cursor | String | cursor for getting the next page |
pageSize | Int | number of derived tables to return in a call Default: 20. |
Returns
DerivedTablesLineageResult
Example
query GetDerivedTablesPartialLineage {
getDerivedTablesPartialLineage {
mcon
sourceColumn
isLastPage
cursor
}
}Types used only by getDerivedTablesPartialLineage
getDerivedTablesPartialLineageDerivedTablePartialLineage
DerivedTablePartialLineageObject type.
| Field | Type | Description |
|---|---|---|
mcon | String | Derived destination table's mcon |
columns | [SourceColumn] | A list of columns in the derived table, that are derived from some source |
sourceColumnUsedAsNonSelected | Boolean | Indicates whether the input source column is used as a non selected column in the query that derives the current table |
displayName | String | Display name for BI tables |
DerivedTablesLineageResult
DerivedTablesLineageResultObject type.
| Field | Type | Description |
|---|---|---|
mcon | String | Source table mcon |
sourceColumn | String | Source column |
destinations | [DerivedTablePartialLineage] | Derived tables and their columns that are influenced by the source col |
isLastPage | Boolean | Indicates whether this response the the last page of response |
cursor | String | Cursor for getting the next page of results |
Related types
getJobDependenciesV2 (query)
getJobDependenciesV2 is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Return the job- and external-asset-level dependency graph for the given job. Result contains job nodes (jobs this one triggers or that trigger it) and external asset nodes (e.g. Airflow Datasets this job reads or writes).
Arguments
| Argument | Type | Description |
|---|---|---|
jobMcon | String! | MCON of the job whose dependency graph should be returned. |
direction | LineageGraphTraversalDirection! | Direction to traverse from the job: 'upstream' (jobs/external assets that lead into this job) or 'downstream' (jobs this job triggers and external assets this job produces). |
Returns
Example
query GetJobDependenciesV2($jobMcon: String!, $direction: LineageGraphTraversalDirection!) {
getJobDependenciesV2(jobMcon: $jobMcon, direction: $direction) {
nodes {
mcon
objectType
jobId
taskId
uri
displayName
latestRunStatus
}
}
}Related types
JobLineageGraph, LineageGraphTraversalDirection
getLineageNodeBlockPattern (query)
getLineageNodeBlockPattern is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Retrieve a node block pattern
Arguments
| Argument | Type | Description |
|---|---|---|
uuid | String! | Node block pattern id |
Returns
Example
query GetLineageNodeBlockPattern($uuid: String!) {
getLineageNodeBlockPattern(uuid: $uuid) {
id
uuid
accountId
resourceId
datasetRegexp
projectRegexp
tableRegexp
createdTime
lastUpdateTime
}
}Related types
getLineageNodeBlockPatterns (query)
getLineageNodeBlockPatterns is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Retrieve a list of node block patterns
Arguments
| Argument | Type | Description |
|---|---|---|
resourceId | String! | Resource id of the resources |
Returns
Example
query GetLineageNodeBlockPatterns($resourceId: String!) {
getLineageNodeBlockPatterns(resourceId: $resourceId) {
id
uuid
accountId
resourceId
datasetRegexp
projectRegexp
tableRegexp
createdTime
lastUpdateTime
}
}Related types
getLineageNodeCollapsingRule (query)
getLineageNodeCollapsingRule is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Retrieve a node collapsing rule
Arguments
| Argument | Type | Description |
|---|---|---|
uuid | UUID! | Collapsing rule UUID |
Returns
Example
query GetLineageNodeCollapsingRule($uuid: UUID!) {
getLineageNodeCollapsingRule(uuid: $uuid) {
createdTime
updatedTime
uuid
accountId
pattern
caseInsensitive
}
}Related types
LineageNodeCollapsingRule, UUID
getLineageNodeCollapsingRules (query)
getLineageNodeCollapsingRules is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Retrieve a list of node collapsing rules
Returns
Example
query GetLineageNodeCollapsingRules {
getLineageNodeCollapsingRules {
createdTime
updatedTime
uuid
accountId
pattern
caseInsensitive
}
}Related types
getLineageNodeReplacementRule (query)
getLineageNodeReplacementRule is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Retrieve a node replacement rule
Arguments
| Argument | Type | Description |
|---|---|---|
uuid | UUID! | Replacement rule UUID |
Returns
Example
query GetLineageNodeReplacementRule($uuid: UUID!) {
getLineageNodeReplacementRule(uuid: $uuid) {
id
uuid
accountId
resourceId
pattern
replacement
caseInsensitive
lastUpdateTime
}
}Related types
LineageNodeReplacementRule, UUID
getLineageNodeReplacementRules (query)
getLineageNodeReplacementRules is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Retrieve a list of node replacement rules
Arguments
| Argument | Type | Description |
|---|---|---|
resourceId | UUID! | Resource id of the resources |
Returns
Example
query GetLineageNodeReplacementRules($resourceId: UUID!) {
getLineageNodeReplacementRules(resourceId: $resourceId) {
id
uuid
accountId
resourceId
pattern
replacement
caseInsensitive
lastUpdateTime
}
}Related types
LineageNodeReplacementRule, UUID
getParsedQuery (query)
getParsedQuery is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
The query, based on which the table's created
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String | Source table mcon |
Returns
ParsedQueryResult
Example
query GetParsedQuery {
getParsedQuery {
parsedQuery
}
}Types used only by getParsedQuery
getParsedQueryParsedQueryResult
ParsedQueryResultObject type.
| Field | Type | Description |
|---|---|---|
parsedQuery | String | Query, based on which the table's created |
getTableColumnsLineage (query)
getTableColumnsLineage is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Column level lineage for a destination table
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String | Destination table mcon |
Returns
TableColumnsLineageResult
Example
query GetTableColumnsLineage {
getTableColumnsLineage {
mcon
timestamp
displayName
}
}Types used only by getTableColumnsLineage
getTableColumnsLineageColumnLineage
ColumnLineageObject type.
| Field | Type | Description |
|---|---|---|
selectedColumn | String | The column on the destination table |
lineageSources | [LineageSources] | Direct source lineage of the selected column |
LineageSources
LineageSourcesObject type.
| Field | Type | Description |
|---|---|---|
mcon | String | Mcon of the source table |
sourceColumns | [SourceColumn] | Source columns from this source table |
TableColumnsLineageResult
TableColumnsLineageResultObject type.
| Field | Type | Description |
|---|---|---|
mcon | String | Destination(current) table mcon |
columnsLineage | [ColumnLineage] | Lineage of the columns in the table |
nonSelectedSourceColumns | [LineageSources] | Other columns used in conditions for the current table |
timestamp | DateTime | Timestamp when the query that generated the lineage happened |
displayName | String | Display name for BI tables |
Related types
getTaskGraphV2 (query)
getTaskGraphV2 is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Return the intra-job task graph for the given job: task nodes connected by IS_DOWNSTREAM edges. Edges that leave the job (to tables, other jobs, or external assets) are filtered out.
Arguments
| Argument | Type | Description |
|---|---|---|
jobMcon | String! | MCON of the job whose intra-job task graph should be returned. |
Returns
Example
query GetTaskGraphV2($jobMcon: String!) {
getTaskGraphV2(jobMcon: $jobMcon) {
nodes {
mcon
objectType
jobId
taskId
uri
displayName
latestRunStatus
}
}
}Related types
simulateLineageNodeReplacementRule (query)
simulateLineageNodeReplacementRule is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Simulate a replacement pattern
Arguments
| Argument | Type | Description |
|---|---|---|
pattern | String! | Input regex pattern |
replacement | String! | Replacement pattern |
testInputStrings | [String]! | Input to test |
caseInsensitive | Boolean | Case sensitivity of the pattern matching |
Returns
[LineageNodeReplacementRuleResult]
Example
query SimulateLineageNodeReplacementRule($pattern: String!, $replacement: String!, $testInputStrings: [String]!) {
simulateLineageNodeReplacementRule(pattern: $pattern, replacement: $replacement, testInputStrings: $testInputStrings) {
testInputString
replacedString
}
}Types used only by simulateLineageNodeReplacementRule
simulateLineageNodeReplacementRuleLineageNodeReplacementRuleResult
LineageNodeReplacementRuleResultObject type.
| Field | Type | Description |
|---|---|---|
testInputString | String | The provided test input string |
replacedString | String | The replaced string, using provided pattern/replacement |
Mutations
createOrUpdateLineageEdge (mutation)
createOrUpdateLineageEdge is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Create or update a lineage edge
Arguments
| Argument | Type | Description |
|---|---|---|
destination | NodeInput! | The destination node |
edgeType | EdgeType | The type of edge to create or update. Must be one of IS_DOWNSTREAM, MODIFIES, IS_READ_BY Default: "IS_DOWNSTREAM". |
expireAt | DateTime | When the edge will expire. If not provided, the node will expire 7 days from creation. |
source | NodeInput! | The source node |
Returns
CreateOrUpdateLineageEdge
Example
mutation CreateOrUpdateLineageEdge($destination: NodeInput!, $source: NodeInput!) {
createOrUpdateLineageEdge(destination: $destination, source: $source) {
edge {
jobTs
expireAt
isCustom
}
}
}Types used only by createOrUpdateLineageEdge
createOrUpdateLineageEdgeCreateOrUpdateLineageEdge
CreateOrUpdateLineageEdgeObject type. Create or update a lineage edge
| Field | Type | Description |
|---|---|---|
edge | LineageGraphEdge |
LineageGraphEdge
LineageGraphEdgeObject type. A lineage graph edge
| Field | Type | Description |
|---|---|---|
source | LineageGraphNode | The source node |
destination | LineageGraphNode | The destination node |
jobTs | DateTime | The timestamp of the job run or API call that created this edge |
expireAt | DateTime | The timestamp when this edge will expire |
isCustom | Boolean | Indicates whether this is a custom lineage edge (created by a user) |
NodeInput
NodeInputInput object type. Minimal information to identify a node
| Field | Type | Description |
|---|---|---|
objectType | String! | Object type |
objectId | String! | Object identifier |
resourceId | UUID | The id of the resource containing the node |
resourceName | String | The name of the resource containing the node |
Related types
DateTime, EdgeType, LineageGraphNode, UUID
createOrUpdateLineageNode (mutation)
createOrUpdateLineageNode is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Create or update a lineage node
Arguments
| Argument | Type | Description |
|---|---|---|
expireAt | DateTime | When the node will expire. If not provided, the node will expire 7 days from creation. |
name | String | Object name (table name, report name, etc) |
objectId | String! | Object identifier |
objectType | String! | Object type |
properties | [ObjectPropertyInput] | A list of object properties to be indexed by the search service |
resourceId | UUID | The id of the resource containing the node |
resourceName | String | The name of the resource containing the node |
Returns
CreateOrUpdateLineageNode
Example
mutation CreateOrUpdateLineageNode($objectId: String!, $objectType: String!) {
createOrUpdateLineageNode(objectId: $objectId, objectType: $objectType) {
node {
mcon
displayName
hasDownstreamNodes
hasUpstreamNodes
objectType
isCustom
jobTs
expireAt
isMonitored
isExcluded
lastActivity
elementId
agentName
toolCall
biAssetType
}
}
}Types used only by createOrUpdateLineageNode
createOrUpdateLineageNodeCreateOrUpdateLineageNode
CreateOrUpdateLineageNodeObject type. Create or update a lineage node
| Field | Type | Description |
|---|---|---|
node | LineageGraphNode |
ObjectPropertyInput
ObjectPropertyInputInput object type. Object properties, indexed by the search service
| Field | Type | Description |
|---|---|---|
propertyName | String! | The name (key) of the property |
propertyValue | String! | The value for the property |
Related types
DateTime, LineageGraphNode, UUID
createOrUpdateLineageNodeBlockPattern (mutation)
createOrUpdateLineageNodeBlockPattern is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Create or update a node block pattern
Arguments
Returns
CreateOrUpdateLineageNodeBlockPattern
Example
mutation CreateOrUpdateLineageNodeBlockPattern($resourceId: UUID!) {
createOrUpdateLineageNodeBlockPattern(resourceId: $resourceId) {
pattern {
id
uuid
accountId
resourceId
datasetRegexp
projectRegexp
tableRegexp
createdTime
lastUpdateTime
}
}
}Types used only by createOrUpdateLineageNodeBlockPattern
createOrUpdateLineageNodeBlockPatternCreateOrUpdateLineageNodeBlockPattern
CreateOrUpdateLineageNodeBlockPatternObject type. Create or update a node block pattern
| Field | Type | Description |
|---|---|---|
pattern | LineageNodeBlockPattern |
Related types
createOrUpdateLineageNodeCollapsingRule (mutation)
createOrUpdateLineageNodeCollapsingRule is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Create or update a node collapsing rule
Arguments
| Argument | Type | Description |
|---|---|---|
caseInsensitive | Boolean | Case sensitivity of the pattern matching Default: false. |
pattern | String! | Nodes which canonical name matches the pattern will be marked as collapsible |
uuid | UUID | The rule UUID (updates only) |
Returns
CreateOrUpdateLineageNodeCollapsingRule
Example
mutation CreateOrUpdateLineageNodeCollapsingRule($pattern: String!) {
createOrUpdateLineageNodeCollapsingRule(pattern: $pattern) {
rule {
createdTime
updatedTime
uuid
accountId
pattern
caseInsensitive
}
}
}Types used only by createOrUpdateLineageNodeCollapsingRule
createOrUpdateLineageNodeCollapsingRuleCreateOrUpdateLineageNodeCollapsingRule
CreateOrUpdateLineageNodeCollapsingRuleObject type. Create or update a node collapsing rule
| Field | Type | Description |
|---|---|---|
rule | LineageNodeCollapsingRule | Collapsing rule that was created or updated |
Related types
LineageNodeCollapsingRule, UUID
createOrUpdateLineageNodeReplacementRule (mutation)
createOrUpdateLineageNodeReplacementRule is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Create or update a node replacement rule
Arguments
| Argument | Type | Description |
|---|---|---|
caseInsensitive | Boolean | Case sensitivity of the pattern matching |
pattern | String! | Modify canonical name by replacing the pattern with replacement |
replacement | String! | Modify canonical name by replacing the pattern with replacement |
resourceId | UUID! | The id of the resource containing the node |
uuid | UUID | The rule UUID (updates only) |
Returns
CreateOrUpdateLineageNodeReplacementRule
Example
mutation CreateOrUpdateLineageNodeReplacementRule($pattern: String!, $replacement: String!, $resourceId: UUID!) {
createOrUpdateLineageNodeReplacementRule(pattern: $pattern, replacement: $replacement, resourceId: $resourceId) {
rule {
id
uuid
accountId
resourceId
pattern
replacement
caseInsensitive
lastUpdateTime
}
}
}Types used only by createOrUpdateLineageNodeReplacementRule
createOrUpdateLineageNodeReplacementRuleCreateOrUpdateLineageNodeReplacementRule
CreateOrUpdateLineageNodeReplacementRuleObject type. Create or update a node replacement rule
| Field | Type | Description |
|---|---|---|
rule | LineageNodeReplacementRule | Replacement rule that was created or updated |
Related types
LineageNodeReplacementRule, UUID
deleteLineageNode (mutation)
deleteLineageNode is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Delete a lineage node and any lineage edges connected to it.
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String! | The MCON of the node to be deleted |
Returns
DeleteLineageNode
Example
mutation DeleteLineageNode($mcon: String!) {
deleteLineageNode(mcon: $mcon) {
objectsDeleted
nodesDeleted
edgesDeleted
}
}Types used only by deleteLineageNode
deleteLineageNodeDeleteLineageNode
DeleteLineageNodeObject type. Delete a lineage node and any lineage edges connected to it.
| Field | Type | Description |
|---|---|---|
objectsDeleted | Int | Total number of objects (nodes + edges) deleted |
nodesDeleted | Int | Total number of nodes deleted |
edgesDeleted | Int | Total number of edges deleted |
deleteLineageNodeBlockPattern (mutation)
deleteLineageNodeBlockPattern is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Delete a lineage node block pattern.
Arguments
| Argument | Type | Description |
|---|---|---|
uuid | UUID! | The UUID of the pattern to delete |
Returns
DeleteLineageNodeBlockPattern
Example
mutation DeleteLineageNodeBlockPattern($uuid: UUID!) {
deleteLineageNodeBlockPattern(uuid: $uuid) {
pattern {
id
uuid
accountId
resourceId
datasetRegexp
projectRegexp
tableRegexp
createdTime
lastUpdateTime
}
}
}Types used only by deleteLineageNodeBlockPattern
deleteLineageNodeBlockPatternDeleteLineageNodeBlockPattern
DeleteLineageNodeBlockPatternObject type. Delete a lineage node block pattern.
| Field | Type | Description |
|---|---|---|
pattern | LineageNodeBlockPattern |
Related types
deleteLineageNodeCollapsingRule (mutation)
deleteLineageNodeCollapsingRule is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Delete a lineage node collapsing rule
Arguments
| Argument | Type | Description |
|---|---|---|
uuid | UUID! | The UUID of the collapsing rule to delete |
Returns
DeleteLineageNodeCollapsingRule
Example
mutation DeleteLineageNodeCollapsingRule($uuid: UUID!) {
deleteLineageNodeCollapsingRule(uuid: $uuid) {
rule {
createdTime
updatedTime
uuid
accountId
pattern
caseInsensitive
}
}
}Types used only by deleteLineageNodeCollapsingRule
deleteLineageNodeCollapsingRuleDeleteLineageNodeCollapsingRule
DeleteLineageNodeCollapsingRuleObject type. Delete a lineage node collapsing rule
| Field | Type | Description |
|---|---|---|
rule | LineageNodeCollapsingRule |
Related types
LineageNodeCollapsingRule, UUID
deleteLineageNodeReplacementRule (mutation)
deleteLineageNodeReplacementRule is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Delete a lineage node replacement rule
Arguments
| Argument | Type | Description |
|---|---|---|
uuid | UUID! | The UUID of the replacement rule to delete |
Returns
DeleteLineageNodeReplacementRule
Example
mutation DeleteLineageNodeReplacementRule($uuid: UUID!) {
deleteLineageNodeReplacementRule(uuid: $uuid) {
rule {
id
uuid
accountId
resourceId
pattern
replacement
caseInsensitive
lastUpdateTime
}
}
}Types used only by deleteLineageNodeReplacementRule
deleteLineageNodeReplacementRuleDeleteLineageNodeReplacementRule
DeleteLineageNodeReplacementRuleObject type. Delete a lineage node replacement rule
| Field | Type | Description |
|---|---|---|
rule | LineageNodeReplacementRule |
Related types
LineageNodeReplacementRule, UUID
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
