From aea454c780fb7ba671baca0c70ba86351efb9115 Mon Sep 17 00:00:00 2001 From: Sebastian Blank Date: Fri, 7 Nov 2025 12:10:46 +0100 Subject: [PATCH 1/2] DocumentFolderType: Missing properties field --- src/GraphQL/DocumentType/DocumentFolderType.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/GraphQL/DocumentType/DocumentFolderType.php b/src/GraphQL/DocumentType/DocumentFolderType.php index 8e76e2ba1..ec0021d36 100644 --- a/src/GraphQL/DocumentType/DocumentFolderType.php +++ b/src/GraphQL/DocumentType/DocumentFolderType.php @@ -35,6 +35,7 @@ public function __construct(Service $graphQlService, $config = [], $context = [] */ public function build(&$config) { + $propertyType = $this->getGraphQlService()->buildGeneralType('element_property'); $resolver = new \Pimcore\Bundle\DataHubBundle\GraphQL\Resolver\Element('document', $this->getGraphQLService()); $documentResolver = new \Pimcore\Bundle\DataHubBundle\GraphQL\Resolver\Document(new \Pimcore\Model\Document\Service(), $this->getGraphQlService()); $documentTree = $this->getGraphQlService()->buildGeneralType('document_tree'); @@ -52,6 +53,16 @@ public function build(&$config) ], 'creationDate' => Type::int(), 'modificationDate' => Type::int(), + 'properties' => [ + 'type' => Type::listOf($propertyType), + 'args' => [ + 'keys' => [ + 'type' => Type::listOf(Type::string()), + 'description' => 'comma seperated list of key names', + ], + ], + 'resolve' => [$resolver, 'resolveProperties'], + ], 'parent' => [ 'type' => $documentTree, 'resolve' => [$resolver, 'resolveParent'], From 13529235b8d58b3e8f9d5093731bade916a998e4 Mon Sep 17 00:00:00 2001 From: Sebastian Blank Date: Fri, 7 Nov 2025 13:17:02 +0100 Subject: [PATCH 2/2] Add 'type' field to DocumentFolderType --- src/GraphQL/DocumentType/DocumentFolderType.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GraphQL/DocumentType/DocumentFolderType.php b/src/GraphQL/DocumentType/DocumentFolderType.php index ec0021d36..bac92973f 100644 --- a/src/GraphQL/DocumentType/DocumentFolderType.php +++ b/src/GraphQL/DocumentType/DocumentFolderType.php @@ -53,6 +53,7 @@ public function build(&$config) ], 'creationDate' => Type::int(), 'modificationDate' => Type::int(), + 'type' => Type::string(), 'properties' => [ 'type' => Type::listOf($propertyType), 'args' => [