Queries for Asset Types
assetType
Returns a single asset type.
assetType(id) {
/* AssetType fields */
}
Arguments
id
Int! -- required
id
Int! -- requiredThe ID of the Asset Type to return.
Response
AssetType.*
AssetType
AssetType.*
AssetTypeAny requested field from the AssetType object.
Example
Request
query {
assetType(id: 2) {
id
name
}
}
Response
{
"data": {
"assetType": {
"id": 2,
"name": "Wearable"
}
}
}
assetTypes
Returns all available asset types.
assetTypes {
/* AssetType fields */
}
Arguments
None
Response
AssetType.*
[AssetType!]
AssetType.*
[AssetType!]A list of AssetType objects returning any requested fields from the AssetType object.
Example
Request
query {
assetTypes {
id
name
}
}
Response
{
"data": {
"assetTypes": [
{
"id": 1,
"name": "Land"
},
{
"id": 2,
"name": "Wearable"
},
{
"id": 3,
"name": "Weapon"
},
{
"id": 4,
"name": "Pass"
},
{
"id": 5,
"name": "Consumable"
},
{
"id": 6,
"name": "Mount / Vehicle"
},
{
"id": 7,
"name": "Furniture"
},
{
"id": 8,
"name": "Avatar"
},
{
"id": 9,
"name": "Companion"
},
{
"id": 10,
"name": "Emote"
},
{
"id": 11,
"name": "Structure"
},
{
"id": 12,
"name": "Ad Space"
}
]
}
}