Related queries and mutations in Users, accounts and access. Each has its own section.
Queries
getSharedQuery (query)
getSharedQuery 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 a shared API Explorer query
Arguments
| Argument | Type | Description |
|---|---|---|
key | String! | S3 object key of shared query file |
Returns
SharedQueryOutput
Example
query GetSharedQuery($key: String!) {
getSharedQuery(key: $key) {
query
variables
}
}Types used only by getSharedQuery
getSharedQuerySharedQueryOutput
SharedQueryOutputObject type.
| Field | Type | Description |
|---|---|---|
query | String! | GraphQL query |
variables | GenericScalar! | GraphQL query variables |
Related types
Mutations
createSharedQuery (mutation)
createSharedQuery 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.
Create a new shared API Explorer GraphQL query or mutation
Arguments
| Argument | Type | Description |
|---|---|---|
content | String! | API Explorer GraphQL operation content. Maximum size is 1MB. |
expirationInDays | Int | Number of days to expire the temporary link, max and default expiration is 7 days |
type | SharedQueryTypeEnum | Type of shared GraphQL operation: temporary (default) or permanent (internal only) |
variables | JSONString | API Explorer GraphQL variables. Maximum size is 1MB. |
Returns
CreateSharedQuery
Example
mutation CreateSharedQuery($content: String!) {
createSharedQuery(content: $content) {
link
}
}Types used only by createSharedQuery
createSharedQueryCreateSharedQuery
CreateSharedQueryObject type. Create a new shared API Explorer GraphQL query or mutation
| Field | Type | Description |
|---|---|---|
link | String | Link to newly shared query |
SharedQueryTypeEnum
SharedQueryTypeEnumEnum type.
| Value | Description |
|---|---|
TEMPORARY | |
PERMANENT |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
