Favorite assets (GraphQL)

Related queries and mutations in Users, accounts and access. Each has its own section.

Queries

favoriteAssets (query)

favoriteAssets is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get all favorite assets for the current user

Arguments

ArgumentTypeDescription
objectTypes[String]Filter by object types

Returns

[FavoriteAsset!]

Example

query FavoriteAssets {
  favoriteAssets {
    id
    mcon
    addedAt
  }
}

Related types

FavoriteAsset

isFavorite (query)

isFavorite is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Check if an asset is favorited

Arguments

ArgumentTypeDescription
mconString!

Returns

Boolean!

Example

query IsFavorite($mcon: String!) {
  isFavorite(mcon: $mcon)
}

Mutations

addFavoriteAsset (mutation)

addFavoriteAsset is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Add an asset to favorites

Arguments

ArgumentTypeDescription
mconString!

Returns

AddFavoriteAsset

Example

mutation AddFavoriteAsset($mcon: String!) {
  addFavoriteAsset(mcon: $mcon) {
    success
  }
}

Types used only by addFavoriteAsset

AddFavoriteAsset

Object type. Add an asset to favorites

FieldTypeDescription
favoriteFavoriteAsset
successBoolean

Related types

FavoriteAsset

removeFavoriteAsset (mutation)

removeFavoriteAsset is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Remove an asset from favorites

Arguments

ArgumentTypeDescription
mconString!

Returns

RemoveFavoriteAsset

Example

mutation RemoveFavoriteAsset($mcon: String!) {
  removeFavoriteAsset(mcon: $mcon) {
    success
  }
}

Types used only by removeFavoriteAsset

RemoveFavoriteAsset

Object type. Remove an asset from favorites

FieldTypeDescription
successBoolean

Source: The GraphQL API reference

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