Catalog properties and metadata (GraphQL)

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

ArgumentTypeDescription
mconStringFilter by mcon, returns this single object
parentMconStringOnly 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.
domainIdUUIDOnly include objects in this domain or its hierarchy.
offsetIntStarting node index for current page.
limitIntMax nodes to get for page.

Returns

[CatalogNavResults]

Example

query GetCatalogNavGroupedNodes {
  getCatalogNavGroupedNodes {
    hasNextPage
    nextPageOffset
    groupObjectType
  }
}

Related types

CatalogNavResults, UUID

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

ArgumentTypeDescription
mconStringFilter by mcon, returns this single object
parentMconStringOnly 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.
domainIdUUIDOnly include objects in this domain or its hierarchy.
offsetIntStarting node index for current page.
limitIntMax nodes to get for page.

Returns

CatalogNavResults

Example

query GetCatalogNavLevelNodes {
  getCatalogNavLevelNodes {
    hasNextPage
    nextPageOffset
    groupObjectType
  }
}

Related types

CatalogNavResults, UUID

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

ArgumentTypeDescription
offsetInt
beforeString
afterString
firstInt
lastInt
mconString

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

ArgumentTypeDescription
warehouseUuidUUIDLimit results to this warehouse.
propertyNameString!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).
scopeClassifiedAssetScopeInputOptional database/schema scope filter.
firstIntMaximum number of results to return per page. Default: 50.
afterStringRelay 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

ClassifiedAssetConnection

Object type.

FieldTypeDescription
edges[ClassifiedAssetEdge!]!List of classified asset edges.
pageInfoClassifiedAssetPageInfo!Pagination metadata.
totalCountInt!Total number of matching assets, regardless of pagination.
ClassifiedAssetEdge

Object type.

FieldTypeDescription
nodeClassifiedAssetNode!
ClassifiedAssetNode

Object type.

FieldTypeDescription
mconString!Full MCON of the asset.
assetTypeClassifiedAssetType!Whether this asset is a table or a field.
fullTableIdString!Fully-qualified table identifier (e.g. database:schema.table).
fieldNameStringColumn name — populated only for FIELD assets.
fieldTypeStringColumn data type — populated only for FIELD assets when available.
propertyNameString!Name of the matched property (e.g. SNOWFLAKE.CORE.SEMANTIC_CATEGORY).
propertyValueStringValue of the matched property.
propertySourceStringOrigin of the property (e.g. snowflake).
ClassifiedAssetPageInfo

Object type.

FieldTypeDescription
hasNextPageBoolean!Whether there is another page of results.
endCursorStringCursor to pass as after to fetch the next page.
ClassifiedAssetScopeInput

Input object type.

FieldTypeDescription
databaseNameStringLimit results to this database.
schemaNameStringLimit results to this schema.
ClassifiedAssetType

Enum type.

ValueDescription
TABLE
FIELD

Related types

UUID

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

ArgumentTypeDescription
offsetInt
beforeString
afterString
firstInt
lastInt
mconIdString

Returns

ObjectPropertyConnection

Example

query GetObjectProperties {
  getObjectProperties {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

ObjectPropertyConnection

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

ArgumentTypeDescription
limitIntDefault: 100.
offsetIntDefault: 0.
searchStringStringFilter property names by search string

Returns

PropertyNames

Example

query GetObjectPropertyNames {
  getObjectPropertyNames {
    propertyNames
  }
}

Types used only by getObjectPropertyNames

PropertyNames

Object type. All unique object property names

FieldTypeDescription
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

ArgumentTypeDescription
searchStringString
firstIntDefault: 100.
offsetIntDefault: 0.
excludeStringStringFilters 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

PropertyNameValue

Object type.

FieldTypeDescription
nameString
valueString
PropertyNameValues

Object type. All unique object property names/values

FieldTypeDescription
propertyNameValues[PropertyNameValue]List of unique object property name/value pairs
hasNextPageBooleanthere 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

ArgumentTypeDescription
limitIntDefault: 100.
offsetIntDefault: 0.
propertyNameStringFilter by property name
searchStringStringFilter property values by search string

Returns

PropertyValues

Example

query GetObjectPropertyValues {
  getObjectPropertyValues {
    propertyValues
  }
}

Types used only by getObjectPropertyValues

PropertyValues

Object type. All unique object property names

FieldTypeDescription
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

ArgumentTypeDescription
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

BulkCreateOrUpdateObjectProperties

Object type. Create or update a list of properties (tags) for objects (e.g. tables, fields, etc.)

FieldTypeDescription
objectProperties[ObjectProperty]List of properties created or updated
InputObjectProperty

Input object type.

FieldTypeDescription
mconIdString!Monte Carlo full identifier for an entity
propertyNameString!Name of the property (AKA tag key)
propertyValueStringValue of the property (AKA tag value)
propertySourceTypeStringWhere property originated. Default: "dashboard".

Related types

ObjectProperty

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

ArgumentTypeDescription
descriptionString!Description of object
mconString!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

CreateOrUpdateCatalogObjectMetadata

Object type. Create or update an asset's metadata

FieldTypeDescription
catalogObjectMetadataCatalogObjectMetadataObject metadata created or updated

Related types

CatalogObjectMetadata

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

ArgumentTypeDescription
mconIdString!Monte Carlo full identifier for an entity
propertyNameString!Name of the property (AKA tag key)
propertySourceTypeStringWhere property originated. Default: "dashboard".
propertyValueStringValue 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

CreateOrUpdateObjectProperty

Object type. Create or update properties (tags) for objects (e.g. tables, fields, etc.)

FieldTypeDescription
objectPropertyObjectPropertyProperty created or updated

Related types

ObjectProperty

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

ArgumentTypeDescription
mconString!Monte Carlo full identifier for an entity

Returns

DeleteCatalogObjectMetadata

Example

mutation DeleteCatalogObjectMetadata($mcon: String!) {
  deleteCatalogObjectMetadata(mcon: $mcon) {
    success
  }
}

Types used only by deleteCatalogObjectMetadata

DeleteCatalogObjectMetadata

Object type. Delete metadata for an asset

FieldTypeDescription
successBoolean

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

ArgumentTypeDescription
mconIdString!Monte Carlo full identifier for an entity
propertyNameString!Name of the property (AKA tag key)
propertySourceTypeStringWhere property originated. Default: "dashboard".

Returns

DeleteObjectProperty

Example

mutation DeleteObjectProperty($mconId: String!, $propertyName: String!) {
  deleteObjectProperty(mconId: $mconId, propertyName: $propertyName) {
    success
  }
}

Types used only by deleteObjectProperty

DeleteObjectProperty

Object type. Delete properties (tags) for objects (e.g. tables, fields, etc.)

FieldTypeDescription
successBoolean

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.