From 5be1e705a4d5b8fb4698c1d881c02fe108ec06c0 Mon Sep 17 00:00:00 2001 From: Sebastian Blank Date: Fri, 19 Aug 2022 10:07:21 +0200 Subject: [PATCH] Fix: Missing creationDate/modificationDate on Pimcore Object Type --- src/GraphQL/DataObjectType/PimcoreObjectType.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/GraphQL/DataObjectType/PimcoreObjectType.php b/src/GraphQL/DataObjectType/PimcoreObjectType.php index e1ebf47da..e94bae7ec 100644 --- a/src/GraphQL/DataObjectType/PimcoreObjectType.php +++ b/src/GraphQL/DataObjectType/PimcoreObjectType.php @@ -79,10 +79,10 @@ public function build($context = []) // these are the system fields that are always available, maybe move some of them to FieldHelper so that they // are only visible if explicitly configured by the user - $fields = ['id' => - [ - 'type' => Type::id(), - ], + $fields = [ + 'id' => Type::id(), + 'creationDate' => Type::int(), + 'modificationDate' => Type::int(), 'objectType' => [ 'type' => Type::string(), 'resolve' => function ($value = null, $args = [], $context = [], ResolveInfo $resolveInfo = null) {