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
| Argument | Type | Description |
|---|---|---|
objectTypes | [String] | Filter by object types |
Returns
Example
query FavoriteAssets {
favoriteAssets {
id
mcon
addedAt
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
mcon | String! |
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
| Argument | Type | Description |
|---|---|---|
mcon | String! |
Returns
AddFavoriteAsset
Example
mutation AddFavoriteAsset($mcon: String!) {
addFavoriteAsset(mcon: $mcon) {
success
}
}Types used only by addFavoriteAsset
addFavoriteAssetAddFavoriteAsset
AddFavoriteAssetObject type. Add an asset to favorites
| Field | Type | Description |
|---|---|---|
favorite | FavoriteAsset | |
success | Boolean |
Related types
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
| Argument | Type | Description |
|---|---|---|
mcon | String! |
Returns
RemoveFavoriteAsset
Example
mutation RemoveFavoriteAsset($mcon: String!) {
removeFavoriteAsset(mcon: $mcon) {
success
}
}Types used only by removeFavoriteAsset
removeFavoriteAssetRemoveFavoriteAsset
RemoveFavoriteAssetObject type. Remove an asset from favorites
| 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.
