I have a GraphQL query:
{
findAsset(id: "7a6e3566-d087-4e61-bdd2-e316126b416a") {
metadata(path: "pixelWidth")
}
}
This works and it returns the value of pixelWidth
.
How can I get both pixelWidth
and pixelHeight
in one call? Is this possible?
The following produces an error and I’ve tried different delimiters (comma, semicolon etc):
{
findAsset(id: "7a6e3566-d087-4e61-bdd2-e316126b416a") {
metadata(path: "pixelWidth, pixelHeight")
}
}
I think this is a limitation in the schema on the server?
Do I need to make two calls - like this?
One for pixelWidth
:
{
findAsset(id: "7a6e3566-d087-4e61-bdd2-e316126b416a") {
metadata(path: "pixelWidth")
}
}
And one for pixelHeight
:
{
findAsset(id: "7a6e3566-d087-4e61-bdd2-e316126b416a") {
metadata(path: "pixelHeight")
}
}