Related queries and mutations in Catalog and lineage. Each has its own section.
Queries
getCatalogNavGroupedNodes (query)
getCatalogNavGroupedNodes 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.
Get nodes for navigating the catalog by type and hierarchy.
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String | Filter by mcon, returns this single object |
parentMcon | String | Only include children of this catalog object. If not given, will get top-level objects. |
objectTypes | [String] | Only include objects of these types. |
excludeObjectTypes | [String] | Exclude objects of these types. |
domainId | UUID | Only include objects in this domain or its hierarchy. |
offset | Int | Starting node index for current page. |
limit | Int | Max nodes to get for page. |
Returns
Example
query GetCatalogNavGroupedNodes {
getCatalogNavGroupedNodes {
hasNextPage
nextPageOffset
groupObjectType
}
}Related types
getCatalogNavLevelNodes (query)
getCatalogNavLevelNodes 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.
Get nodes for navigating the catalog by type and hierarchy.
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String | Filter by mcon, returns this single object |
parentMcon | String | Only include children of this catalog object. If not given, will get top-level objects. |
objectTypes | [String] | Only include objects of these types. |
excludeObjectTypes | [String] | Exclude objects of these types. |
domainId | UUID | Only include objects in this domain or its hierarchy. |
offset | Int | Starting node index for current page. |
limit | Int | Max nodes to get for page. |
Returns
Example
query GetCatalogNavLevelNodes {
getCatalogNavLevelNodes {
hasNextPage
nextPageOffset
groupObjectType
}
}Related types
getCatalogObjectMetadata (query)
getCatalogObjectMetadata 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.
Arguments
| Argument | Type | Description |
|---|---|---|
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int | |
mcon | String |
Returns
CatalogObjectMetadataConnection
Example
query GetCatalogObjectMetadata {
getCatalogObjectMetadata {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Related types
CatalogObjectMetadataConnection
getClassifiedAssets (query)
getClassifiedAssets 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 assets (tables and/or columns) that have been tagged with a given object property. Designed for property-based discovery, e.g. finding all columns classified with a specific Snowflake semantic category. Results are empty when tag ingestion is not enabled for the warehouse.
Arguments
| Argument | Type | Description |
|---|---|---|
warehouseUuid | UUID | Limit results to this warehouse. |
propertyName | String! | Property name to search for (e.g. SNOWFLAKE.CORE.SEMANTIC_CATEGORY). |
propertyValues | [String!] | Optional list of property values to match (OR-combined). |
assetTypes | [ClassifiedAssetType!] | Limit to TABLE, FIELD, or both (default: both). |
scope | ClassifiedAssetScopeInput | Optional database/schema scope filter. |
first | Int | Maximum number of results to return per page. Default: 50. |
after | String | Relay cursor returned by a previous call for fetching the next page. |
Returns
ClassifiedAssetConnection
Example
query GetClassifiedAssets($propertyName: String!) {
getClassifiedAssets(propertyName: $propertyName) {
totalCount
}
}Types used only by getClassifiedAssets
getClassifiedAssetsClassifiedAssetConnection
ClassifiedAssetConnectionObject type.
| Field | Type | Description |
|---|---|---|
edges | [ClassifiedAssetEdge!]! | List of classified asset edges. |
pageInfo | ClassifiedAssetPageInfo! | Pagination metadata. |
totalCount | Int! | Total number of matching assets, regardless of pagination. |
ClassifiedAssetEdge
ClassifiedAssetEdgeObject type.
| Field | Type | Description |
|---|---|---|
node | ClassifiedAssetNode! |
ClassifiedAssetNode
ClassifiedAssetNodeObject type.
| Field | Type | Description |
|---|---|---|
mcon | String! | Full MCON of the asset. |
assetType | ClassifiedAssetType! | Whether this asset is a table or a field. |
fullTableId | String! | Fully-qualified table identifier (e.g. database:schema.table). |
fieldName | String | Column name — populated only for FIELD assets. |
fieldType | String | Column data type — populated only for FIELD assets when available. |
propertyName | String! | Name of the matched property (e.g. SNOWFLAKE.CORE.SEMANTIC_CATEGORY). |
propertyValue | String | Value of the matched property. |
propertySource | String | Origin of the property (e.g. snowflake). |
ClassifiedAssetPageInfo
ClassifiedAssetPageInfoObject type.
| Field | Type | Description |
|---|---|---|
hasNextPage | Boolean! | Whether there is another page of results. |
endCursor | String | Cursor to pass as after to fetch the next page. |
ClassifiedAssetScopeInput
ClassifiedAssetScopeInputInput object type.
| Field | Type | Description |
|---|---|---|
databaseName | String | Limit results to this database. |
schemaName | String | Limit results to this schema. |
ClassifiedAssetType
ClassifiedAssetTypeEnum type.
| Value | Description |
|---|---|
TABLE | |
FIELD |
Related types
getObjectProperties (query)
getObjectProperties 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.
Arguments
| Argument | Type | Description |
|---|---|---|
offset | Int | |
before | String | |
after | String | |
first | Int | |
last | Int | |
mconId | String |
Returns
Example
query GetObjectProperties {
getObjectProperties {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}Related types
getObjectPropertyNames (query)
getObjectPropertyNames 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.
Return all unique property names for an account
Arguments
| Argument | Type | Description |
|---|---|---|
limit | Int | Default: 100. |
offset | Int | Default: 0. |
searchString | String | Filter property names by search string |
Returns
PropertyNames
Example
query GetObjectPropertyNames {
getObjectPropertyNames {
propertyNames
}
}Types used only by getObjectPropertyNames
getObjectPropertyNamesPropertyNames
PropertyNamesObject type. All unique object property names
| Field | Type | Description |
|---|---|---|
propertyNames | [String] | List of object property names |
getObjectPropertyNameValues (query)
getObjectPropertyNameValues 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.
Return all unique property names/values for an account
Arguments
| Argument | Type | Description |
|---|---|---|
searchString | String | |
first | Int | Default: 100. |
offset | Int | Default: 0. |
excludeString | String | Filters out properties that contains the exclude string in the property key. |
searchSourceTypes | [String] | Only return properties of these types |
excludeSourceTypes | [String] | Filter out properties of these types |
Returns
PropertyNameValues
Example
query GetObjectPropertyNameValues {
getObjectPropertyNameValues {
hasNextPage
}
}Types used only by getObjectPropertyNameValues
getObjectPropertyNameValuesPropertyNameValue
PropertyNameValueObject type.
| Field | Type | Description |
|---|---|---|
name | String | |
value | String |
PropertyNameValues
PropertyNameValuesObject type. All unique object property names/values
| Field | Type | Description |
|---|---|---|
propertyNameValues | [PropertyNameValue] | List of unique object property name/value pairs |
hasNextPage | Boolean | there are more pages to be retrieved |
getObjectPropertyValues (query)
getObjectPropertyValues 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.
Return all unique property values for an account
Arguments
| Argument | Type | Description |
|---|---|---|
limit | Int | Default: 100. |
offset | Int | Default: 0. |
propertyName | String | Filter by property name |
searchString | String | Filter property values by search string |
Returns
PropertyValues
Example
query GetObjectPropertyValues {
getObjectPropertyValues {
propertyValues
}
}Types used only by getObjectPropertyValues
getObjectPropertyValuesPropertyValues
PropertyValuesObject type. All unique object property names
| Field | Type | Description |
|---|---|---|
propertyValues | [String] | List of object property values |
Mutations
bulkCreateOrUpdateObjectProperties (mutation)
bulkCreateOrUpdateObjectProperties 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 list of properties (tags) for objects (e.g. tables, fields, etc.)
Arguments
| Argument | Type | Description |
|---|---|---|
inputObjectProperties | [InputObjectProperty]! | List of object properties to create and update |
Returns
BulkCreateOrUpdateObjectProperties
Example
mutation BulkCreateOrUpdateObjectProperties($inputObjectProperties: [InputObjectProperty]!) {
bulkCreateOrUpdateObjectProperties(inputObjectProperties: $inputObjectProperties) {
objectProperties {
mconId
propertyName
propertyValue
propertySourceType
propertySource
propertyExtra
id
}
}
}Types used only by bulkCreateOrUpdateObjectProperties
bulkCreateOrUpdateObjectPropertiesBulkCreateOrUpdateObjectProperties
BulkCreateOrUpdateObjectPropertiesObject type. Create or update a list of properties (tags) for objects (e.g. tables, fields, etc.)
| Field | Type | Description |
|---|---|---|
objectProperties | [ObjectProperty] | List of properties created or updated |
InputObjectProperty
InputObjectPropertyInput object type.
| Field | Type | Description |
|---|---|---|
mconId | String! | Monte Carlo full identifier for an entity |
propertyName | String! | Name of the property (AKA tag key) |
propertyValue | String | Value of the property (AKA tag value) |
propertySourceType | String | Where property originated. Default: "dashboard". |
Related types
createOrUpdateCatalogObjectMetadata (mutation)
createOrUpdateCatalogObjectMetadata 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 an asset's metadata
Arguments
| Argument | Type | Description |
|---|---|---|
description | String! | Description of object |
mcon | String! | Monte Carlo full identifier for an entity |
Returns
CreateOrUpdateCatalogObjectMetadata
Example
mutation CreateOrUpdateCatalogObjectMetadata($description: String!, $mcon: String!) {
createOrUpdateCatalogObjectMetadata(description: $description, mcon: $mcon) {
catalogObjectMetadata {
mcon
accountId
resourceId
description
createdTime
lastUpdateTime
source
id
}
}
}Types used only by createOrUpdateCatalogObjectMetadata
createOrUpdateCatalogObjectMetadataCreateOrUpdateCatalogObjectMetadata
CreateOrUpdateCatalogObjectMetadataObject type. Create or update an asset's metadata
| Field | Type | Description |
|---|---|---|
catalogObjectMetadata | CatalogObjectMetadata | Object metadata created or updated |
Related types
createOrUpdateObjectProperty (mutation)
createOrUpdateObjectProperty 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 properties (tags) for objects (e.g. tables, fields, etc.)
Arguments
| Argument | Type | Description |
|---|---|---|
mconId | String! | Monte Carlo full identifier for an entity |
propertyName | String! | Name of the property (AKA tag key) |
propertySourceType | String | Where property originated. Default: "dashboard". |
propertyValue | String | Value of the property (AKA tag value) |
Returns
CreateOrUpdateObjectProperty
Example
mutation CreateOrUpdateObjectProperty($mconId: String!, $propertyName: String!) {
createOrUpdateObjectProperty(mconId: $mconId, propertyName: $propertyName) {
objectProperty {
mconId
propertyName
propertyValue
propertySourceType
propertySource
propertyExtra
id
}
}
}Types used only by createOrUpdateObjectProperty
createOrUpdateObjectPropertyCreateOrUpdateObjectProperty
CreateOrUpdateObjectPropertyObject type. Create or update properties (tags) for objects (e.g. tables, fields, etc.)
| Field | Type | Description |
|---|---|---|
objectProperty | ObjectProperty | Property created or updated |
Related types
deleteCatalogObjectMetadata (mutation)
deleteCatalogObjectMetadata 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 metadata for an asset
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String! | Monte Carlo full identifier for an entity |
Returns
DeleteCatalogObjectMetadata
Example
mutation DeleteCatalogObjectMetadata($mcon: String!) {
deleteCatalogObjectMetadata(mcon: $mcon) {
success
}
}Types used only by deleteCatalogObjectMetadata
deleteCatalogObjectMetadataDeleteCatalogObjectMetadata
DeleteCatalogObjectMetadataObject type. Delete metadata for an asset
| Field | Type | Description |
|---|---|---|
success | Boolean |
deleteObjectProperty (mutation)
deleteObjectProperty 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 properties (tags) for objects (e.g. tables, fields, etc.)
Arguments
| Argument | Type | Description |
|---|---|---|
mconId | String! | Monte Carlo full identifier for an entity |
propertyName | String! | Name of the property (AKA tag key) |
propertySourceType | String | Where property originated. Default: "dashboard". |
Returns
DeleteObjectProperty
Example
mutation DeleteObjectProperty($mconId: String!, $propertyName: String!) {
deleteObjectProperty(mconId: $mconId, propertyName: $propertyName) {
success
}
}Types used only by deleteObjectProperty
deleteObjectPropertyDeleteObjectProperty
DeleteObjectPropertyObject type. Delete properties (tags) for objects (e.g. tables, fields, etc.)
| Field | Type | Description |
|---|---|---|
success | Boolean |
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
