From aaf7001cf665e5ff5322cd43c1bcff1cc39348c9 Mon Sep 17 00:00:00 2001 From: Christoph Leitgeb <98694299+leitge@users.noreply.github.com> Date: Sun, 25 Feb 2024 14:28:35 +0100 Subject: [PATCH] Update AssetType.php --- src/GraphQL/AssetType/AssetType.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/GraphQL/AssetType/AssetType.php b/src/GraphQL/AssetType/AssetType.php index cd53fd47..dc7a93c0 100644 --- a/src/GraphQL/AssetType/AssetType.php +++ b/src/GraphQL/AssetType/AssetType.php @@ -148,6 +148,10 @@ public function build(&$config) 'modificationDate' => Type::int(), 'type' => Type::string(), 'filesize' => Type::int(), + 'version' => [ + 'type' => Type::int(), + 'resolve' => [$resolver, 'resolveVersion'], + ], 'data' => [ 'type' => Type::string(), 'args' => [