More Examples
There are multiple ways to structure queries to access content data.
Get all asset types from a project
query projectAssetTypes {
projects(id: "rekpHnKjK24koIG-oorD") {
toolkit {
categories {
tools {
assetForm {
assetType {
id
name
fields
}
}
}
}
}
}
}
Get project id of specific asset
query MyQuery {
assets(filter: [eq "$.id" "DrNiE-Upt0vpdiHV8123"]) {
project {
id
}
}
}
Get asset type of specific asset
query MyQuery {
assets(filter: [eq "$.id" "DrNiE-Upt0vpdiHV8123"]) {
assetType {
id
}
}
}
Get existing properties of an asset
query MyQuery {
assets(filter: [eq, "$.id", "DrNiE-Upt0vpdiHV8123"]) {
properties
}
}
Get all available fields for a specific asset
query GetAllAvailableFieldsForAsset {
assets(id: "DrNiE-Upt0vpdiHV8123") {
assetType {
id
fields
}
}
}
Get all of a user’s projects.
query MyQuery {
users(id: "Tx6QqoOigi0_5mUAs123") {
projects {
id
name
}
}
}
Updated over 1 year ago