diff --git a/src/bundle/Resources/config/default_settings.yaml b/src/bundle/Resources/config/default_settings.yaml index 18aad66..d3cc8a4 100644 --- a/src/bundle/Resources/config/default_settings.yaml +++ b/src/bundle/Resources/config/default_settings.yaml @@ -46,7 +46,7 @@ parameters: input_type: ImageFieldInput ezimageasset: value_type: ImageFieldValue - value_resolver: 'resolver("DomainImageAssetFieldValue", [field])' + value_resolver: 'query("DomainImageAssetFieldValue", [field])' ezinteger: definition_type: IntegerFieldDefinition value_type: Int diff --git a/src/bundle/Resources/config/graphql/Base.types.yaml b/src/bundle/Resources/config/graphql/Base.types.yaml index 2355da8..1745f2e 100644 --- a/src/bundle/Resources/config/graphql/Base.types.yaml +++ b/src/bundle/Resources/config/graphql/Base.types.yaml @@ -23,7 +23,7 @@ DateTime: format: type: String description: "Date formatted with a date() format" - resolve: "@=resolver('DateTimeFormat', [value, args])" + resolve: "@=query('DateTimeFormat', [value, args])" args: pattern: type: "String" diff --git a/src/bundle/Resources/config/graphql/Content.types.yaml b/src/bundle/Resources/config/graphql/Content.types.yaml index c84c4df..857a3b5 100644 --- a/src/bundle/Resources/config/graphql/Content.types.yaml +++ b/src/bundle/Resources/config/graphql/Content.types.yaml @@ -12,25 +12,25 @@ Content: contentType: type: "ContentType" description: "The content type of the Content item." - resolve: "@=resolver('ContentTypeById', [value.contentTypeId])" + resolve: "@=query('ContentTypeById', [value.contentTypeId])" name: type: "String" description: "The computed name (via name schema) in the main language of the Content item." section: type: "Section" description: "The section to which the Content object is assigned." - resolve: "@=resolver('SectionById', [value.sectionId])" + resolve: "@=query('SectionById', [value.sectionId])" currentVersionNo: type: "Int" description: "Version number of the published version, or 1 for a newly created draft." currentVersion: type: "Version" description: "The currently published version" - resolve: "@=resolver('CurrentVersion', [value])" + resolve: "@=query('CurrentVersion', [value])" versions: type: "[Version]" description: "All content versions." - resolve: "@=resolver('ContentVersions', [value.id])" + resolve: "@=query('ContentVersions', [value.id])" published: type: "Boolean" description: "If the Content item has a published version." @@ -40,7 +40,7 @@ Content: owner: type: "User" description: "The owner user of the Content object" - resolve: "@=resolver('UserById', [value.ownerId])" + resolve: "@=query('UserById', [value.ownerId])" modificationDate: type: DateTime description: "Date the Content item was last modified on." @@ -62,23 +62,23 @@ Content: mainLocation: type: "Location" description: "Content item's main location." - resolve: "@=resolver('LocationById', [value.mainLocationId])" + resolve: "@=query('LocationById', [value.mainLocationId])" locations: type: "[Location]" description: "All the locations of the Content item" - resolve: "@=resolver('LocationsByContentId', [value.id])" + resolve: "@=query('LocationsByContentId', [value.id])" relations: type: "[ContentRelation]" description: "Relations from this Content" - resolve: "@=resolver('ContentRelations', [value])" + resolve: "@=query('ContentRelations', [value])" reverseRelations: type: "[ContentRelation]" description: "Relations to this Content" - resolve: "@=resolver('ContentReverseRelations', [value])" + resolve: "@=query('ContentReverseRelations', [value])" states: type: "[ObjectState]" description: "Content States." - resolve: "@=resolver('ObjectStateByContentInfo', [value])" + resolve: "@=query('ObjectStateByContentInfo', [value])" ContentRelation: type: "object" diff --git a/src/bundle/Resources/config/graphql/ContentType.types.yaml b/src/bundle/Resources/config/graphql/ContentType.types.yaml index 8232188..022ab80 100644 --- a/src/bundle/Resources/config/graphql/ContentType.types.yaml +++ b/src/bundle/Resources/config/graphql/ContentType.types.yaml @@ -47,14 +47,14 @@ ContentType: creator: type: "User" description: "The user who created this content type." - resolve: "@=resolver('UserById', [value.creatorId])" + resolve: "@=query('UserById', [value.creatorId])" modifierId: type: "Int" description: "The user id of the user which has last modified this content type" modifier: type: "User" description: "The user which has last modified this content type" - resolve: "@=resolver('UserById', [value.modifierId])" + resolve: "@=query('UserById', [value.modifierId])" remoteId: type: "String" description: "A global unique id of the content type." @@ -99,12 +99,12 @@ ContentTypeGroup: type: "Int" creator: type: "User" - resolve: "@=resolver('UserById', [value.creatorId])" + resolve: "@=query('UserById', [value.creatorId])" modifierId: type: "Int" modifier: type: "User" - resolve: "@=resolver('UserById', [value.modifierId])" + resolve: "@=query('UserById', [value.modifierId])" contentTypes: type: "[ContentType]" resolve: "@=query('ContentTypesFromGroup', {'groupId': value.id})" diff --git a/src/bundle/Resources/config/graphql/DomainContent.types.yaml b/src/bundle/Resources/config/graphql/DomainContent.types.yaml index 8aa38ba..ea89fc7 100644 --- a/src/bundle/Resources/config/graphql/DomainContent.types.yaml +++ b/src/bundle/Resources/config/graphql/DomainContent.types.yaml @@ -29,7 +29,7 @@ DomainContent: type: String _thumbnail: type: Thumbnail - resolveType: "@=resolver('DomainContentType', [value])" + resolveType: "@=query('DomainContentType', [value])" AbstractDomainContent: type: "object" @@ -44,7 +44,7 @@ AbstractDomainContent: _type: description: "The item's content type" type: ContentType - resolve: '@=resolver("ContentTypeById", [value.contentInfo.contentTypeId])' + resolve: '@=query("ContentTypeById", [value.contentInfo.contentTypeId])' _content: description: 'Underlying content info item' type: Content @@ -57,11 +57,11 @@ AbstractDomainContent: _location: description: 'Main location' type: Location - resolve: '@=resolver("LocationById", [value.contentInfo.mainLocationId])' + resolve: '@=query("LocationById", [value.contentInfo.mainLocationId])' _allLocations: description: 'All the locations' type: '[Location]' - resolve: '@=resolver("LocationsByContentId", [value.contentInfo.id])' + resolve: '@=query("LocationsByContentId", [value.contentInfo.id])' _name: description: "The content item's name, in the prioritized language(s), based on the object name pattern" type: String @@ -69,7 +69,7 @@ AbstractDomainContent: _url: description: "The content item's url alias, based on the main location." type: String - resolve: "@=resolver('MainUrlAlias', [value])" + resolve: "@=query('MainUrlAlias', [value])" _thumbnail: type: Thumbnail resolve: "@=query('Thumbnail', value.getThumbnail())" diff --git a/src/bundle/Resources/config/graphql/Field.types.yaml b/src/bundle/Resources/config/graphql/Field.types.yaml index f413872..08a8d08 100644 --- a/src/bundle/Resources/config/graphql/Field.types.yaml +++ b/src/bundle/Resources/config/graphql/Field.types.yaml @@ -45,14 +45,14 @@ ImageFieldValue: identifier: type: "[ImageVariationIdentifier]!" description: "One or more variation identifiers." - resolve: "@=resolver('ImageVariations', [value.value, args])" + resolve: "@=query('ImageVariations', [value.value, args])" variation: type: ImageVariation args: identifier: type: ImageVariationIdentifier! description: "A variation identifier." - resolve: "@=resolver('ImageVariation', [value.value, args])" + resolve: "@=query('ImageVariation', [value.value, args])" ImageAdditionalData: type: object @@ -139,7 +139,7 @@ DateFieldValue: formatted: type: "String" description: "Formatted date" - resolve: "@=resolver('DateTimeFormat', [args['format'], value.value])" + resolve: "@=query('DateTimeFormat', [args['format'], value.value])" args: format: type: String @@ -248,15 +248,15 @@ RichTextFieldValue: plaintext: type: "String" description: "Plain text representation of the value, without tags. Warning: the text representation may not be perfect." - resolve: "@=resolver('RichTextXmlToPlainText', [value.xml])" + resolve: "@=query('RichTextXmlToPlainText', [value.xml])" html5: type: "String" description: "HTML5 representation." - resolve: "@=resolver('RichTextXmlToHtml5', [value.xml])" + resolve: "@=query('RichTextXmlToHtml5', [value.xml])" html5_edit: type: "String" description: "Editable HTML5 representation." - resolve: "@=resolver('RichTextXmlToHtml5Edit', [value.xml])" + resolve: "@=query('RichTextXmlToHtml5Edit', [value.xml])" SelectionFieldValue: type: object diff --git a/src/bundle/Resources/config/graphql/FieldDefinition.types.yaml b/src/bundle/Resources/config/graphql/FieldDefinition.types.yaml index 989ced6..3aeb8bf 100644 --- a/src/bundle/Resources/config/graphql/FieldDefinition.types.yaml +++ b/src/bundle/Resources/config/graphql/FieldDefinition.types.yaml @@ -194,7 +194,7 @@ SelectionFieldDefinitionSettings: type: Boolean options: type: "[SelectionFieldDefinitionOption]" - resolve: "@=resolver('SelectionFieldDefinitionOptions', [value['options']])" + resolve: "@=query('SelectionFieldDefinitionOptions', [value['options']])" SelectionFieldDefinitionOption: type: object diff --git a/src/bundle/Resources/config/graphql/Item.types.yaml b/src/bundle/Resources/config/graphql/Item.types.yaml index 2aaeec5..3f38a09 100644 --- a/src/bundle/Resources/config/graphql/Item.types.yaml +++ b/src/bundle/Resources/config/graphql/Item.types.yaml @@ -22,7 +22,7 @@ Item: type: String _thumbnail: type: Thumbnail - resolveType: "@=resolver('ItemType', [value])" + resolveType: "@=query('ItemType', [value])" AbstractItem: type: "object" @@ -37,7 +37,7 @@ AbstractItem: _type: description: "The item's content type" type: ContentType - resolve: '@=resolver("ContentTypeById", [value.getContentInfo().contentTypeId])' + resolve: '@=query("ContentTypeById", [value.getContentInfo().contentTypeId])' _contentInfo: description: 'Underlying content info item' type: Content @@ -49,7 +49,7 @@ AbstractItem: _allLocations: description: 'All the locations' type: '[Location]' - resolve: '@=resolver("LocationsByContentId", [value.getContentInfo().id])' + resolve: '@=query("LocationsByContentId", [value.getContentInfo().id])' _name: description: "The content item's name, in the prioritized language(s), based on the object name pattern" type: String @@ -57,7 +57,7 @@ AbstractItem: _url: description: "The content item's url alias, based on the main location." type: String - resolve: "@=resolver('ItemUrlAlias', [value])" + resolve: "@=query('ItemUrlAlias', [value])" _thumbnail: type: Thumbnail resolve: "@=query('Thumbnail', value.getContent().getThumbnail())" diff --git a/src/bundle/Resources/config/graphql/Location.types.yaml b/src/bundle/Resources/config/graphql/Location.types.yaml index ef20c69..ece9ea4 100644 --- a/src/bundle/Resources/config/graphql/Location.types.yaml +++ b/src/bundle/Resources/config/graphql/Location.types.yaml @@ -27,7 +27,7 @@ Location: parentLocation: type: "Location" description: "The parent location" - resolve: "@=resolver('LocationById', [value.parentLocationId])" + resolve: "@=query('LocationById', [value.parentLocationId])" pathString: type: "String" description: "The path to the Location in the Tree." @@ -39,7 +39,7 @@ Location: description: "Depth location has in the location tree" children: type: "LocationConnection" - resolve: "@=resolver('LocationChildren', [{locationId: value.id}, args])" + resolve: "@=query('LocationChildren', [{locationId: value.id}, args])" argsBuilder: 'Relay::Connection' args: sortBy: { type: '[LocationSortByOptions]', description: 'A sort clause, or array of clauses. Add _desc after a clause to reverse it' } @@ -48,13 +48,13 @@ Location: args: custom: type: "Boolean" - resolve: "@=resolver('LocationUrlAliases', [value, args])" + resolve: "@=query('LocationUrlAliases', [value, args])" contentInfo: type: Content resolve: "@=value.getContentInfo()" content: type: DomainContent - resolve: "@=resolver('DomainContentItem', [{id: value.contentId}, null])" + resolve: "@=query('DomainContentItem', [{id: value.contentId}, null])" LocationSortByOptions: type: enum diff --git a/src/bundle/Resources/config/graphql/Node.types.yaml b/src/bundle/Resources/config/graphql/Node.types.yaml index 453a52e..75e9cbd 100644 --- a/src/bundle/Resources/config/graphql/Node.types.yaml +++ b/src/bundle/Resources/config/graphql/Node.types.yaml @@ -4,4 +4,4 @@ Node: type: relay-node config: - resolveType: '@=resolver("node_type", [value])' + resolveType: '@=query("node_type", [value])' diff --git a/src/bundle/Resources/config/graphql/ObjectStateGroup.types.yaml b/src/bundle/Resources/config/graphql/ObjectStateGroup.types.yaml index 220f52a..d156e11 100644 --- a/src/bundle/Resources/config/graphql/ObjectStateGroup.types.yaml +++ b/src/bundle/Resources/config/graphql/ObjectStateGroup.types.yaml @@ -18,4 +18,4 @@ ObjectStateGroup: states: type: "[ObjectState]" description: "List of ObjectStates under ObjectStateGroup." - resolve: "@=resolver('ObjectStatesByGroup', [value])" + resolve: "@=query('ObjectStatesByGroup', [value])" diff --git a/src/bundle/Resources/config/graphql/Platform.types.yaml b/src/bundle/Resources/config/graphql/Platform.types.yaml index 0f04741..0edd2d5 100644 --- a/src/bundle/Resources/config/graphql/Platform.types.yaml +++ b/src/bundle/Resources/config/graphql/Platform.types.yaml @@ -10,9 +10,9 @@ Platform: builder: Relay::Node builderConfig: nodeInterfaceType: Node - idFetcher: '@=resolver("node", [value])' + idFetcher: '@=query("node", [value])' item: description: "An item, whatever its type" type: Item argsBuilder: "Item" - resolve: "@=resolver('Item', [args])" + resolve: "@=query('Item', [args])" diff --git a/src/bundle/Resources/config/graphql/Repository.types.yaml b/src/bundle/Resources/config/graphql/Repository.types.yaml index 396fa2a..f382cf1 100644 --- a/src/bundle/Resources/config/graphql/Repository.types.yaml +++ b/src/bundle/Resources/config/graphql/Repository.types.yaml @@ -15,7 +15,7 @@ Repository: urlAlias: description: "A location url alias: 'path/to/content-item'" type: "String" - resolve: "@=resolver('Location', [args])" + resolve: "@=query('Location', [args])" contentType: type: "ContentType" args: @@ -25,7 +25,7 @@ Repository: identifier: description: "Resolves using the unique ContentType identifier." type: "String" - resolve: "@=resolver('ContentType', [args])" + resolve: "@=query('ContentType', [args])" contentTypes: type: "[ContentType]" args: @@ -33,7 +33,7 @@ Repository: type: "String" groupIdentifier: type: "String" - resolve: "@=resolver('ContentTypesFromGroup', [args])" + resolve: "@=query('ContentTypesFromGroup', [args])" # # Object States @@ -46,12 +46,12 @@ Repository: id: type: "Int" description: "ID of the Object State Group" - resolve: "@=resolver('ObjectStateGroupById', [args])" + resolve: "@=query('ObjectStateGroupById', [args])" objectStateGroups: type: '[ObjectStateGroup]' description: "Fetches all Object State Groups." - resolve: "@=resolver('ObjectStateGroups')" + resolve: "@=query('ObjectStateGroups')" objectState: type: 'ObjectState' @@ -60,7 +60,7 @@ Repository: id: type: "Int" description: "ID of the Object State" - resolve: "@=resolver('ObjectStateById', [args])" + resolve: "@=query('ObjectStateById', [args])" objectStates: type: '[ObjectState]' @@ -69,4 +69,4 @@ Repository: groupId: type: "Int" description: "ID of the ObjectStateGroup" - resolve: "@=resolver('ObjectStatesByGroupId', [args])" + resolve: "@=query('ObjectStatesByGroupId', [args])" diff --git a/src/bundle/Resources/config/graphql/UrlAlias.types.yaml b/src/bundle/Resources/config/graphql/UrlAlias.types.yaml index 5523b0e..774ec38 100644 --- a/src/bundle/Resources/config/graphql/UrlAlias.types.yaml +++ b/src/bundle/Resources/config/graphql/UrlAlias.types.yaml @@ -21,7 +21,7 @@ UrlAlias: type: "Boolean" forward: type: "Boolean" - resolveType: "@=resolver('UrlAliasType', [value])" + resolveType: "@=query('UrlAliasType', [value])" LocationUrlAlias: type: object @@ -43,7 +43,7 @@ LocationUrlAlias: type: "Boolean" location: type: "Location" - resolve: "@=resolver('LocationById', [value.destination])" + resolve: "@=query('LocationById', [value.destination])" interfaces: [UrlAlias] ResourceUrlAlias: diff --git a/src/bundle/Resources/config/graphql/User.types.yaml b/src/bundle/Resources/config/graphql/User.types.yaml index 824d41c..efb1307 100644 --- a/src/bundle/Resources/config/graphql/User.types.yaml +++ b/src/bundle/Resources/config/graphql/User.types.yaml @@ -22,7 +22,7 @@ User: type: "Int" groups: type: "[UserGroup]" - resolve: "@=resolver('UserGroupsByUserId', [value.id])" + resolve: "@=query('UserGroupsByUserId', [value.id])" thumbnail: type: Thumbnail resolve: "@=query('Thumbnail', value.getThumbnail())" @@ -47,10 +47,10 @@ UserGroup: resolve: "@=value.versionInfo" parentGroup: type: "UserGroup" - resolve: "@=resolver('UserGroupById', [value.parentId])" + resolve: "@=query('UserGroupById', [value.parentId])" subGroups: type: "[UserGroup]" - resolve: "@=resolver('UserGroupSubGroups', [value])" + resolve: "@=query('UserGroupSubGroups', [value])" users: type: "[User]" - resolve: "@=resolver('UsersOfGroup', [value])" + resolve: "@=query('UsersOfGroup', [value])" diff --git a/src/bundle/Resources/config/graphql/Version.types.yaml b/src/bundle/Resources/config/graphql/Version.types.yaml index a4dbf1e..c39ec9a 100644 --- a/src/bundle/Resources/config/graphql/Version.types.yaml +++ b/src/bundle/Resources/config/graphql/Version.types.yaml @@ -24,7 +24,7 @@ Version: type: "Int" creator: type: "User" - resolve: "@=resolver('UserById', [value.creatorId])" + resolve: "@=query('UserById', [value.creatorId])" status: type: "Int" initialLanguageCode: diff --git a/src/lib/Schema/Domain/Content/Mapper/FieldDefinition/RelationFieldDefinitionMapper.php b/src/lib/Schema/Domain/Content/Mapper/FieldDefinition/RelationFieldDefinitionMapper.php index 4bd7097..395c5b3 100644 --- a/src/lib/Schema/Domain/Content/Mapper/FieldDefinition/RelationFieldDefinitionMapper.php +++ b/src/lib/Schema/Domain/Content/Mapper/FieldDefinition/RelationFieldDefinitionMapper.php @@ -69,7 +69,7 @@ public function mapToFieldValueResolver(FieldDefinition $fieldDefinition): ?stri $isMultiple = $this->isMultiple($fieldDefinition) ? 'true' : 'false'; - return sprintf('@=resolver("RelationFieldValue", [field, %s])', $isMultiple); + return sprintf('@=query("RelationFieldValue", [field, %s])', $isMultiple); } protected function canMap(FieldDefinition $fieldDefinition) diff --git a/src/lib/Schema/Domain/Content/Mapper/FieldDefinition/ResolverVariables.php b/src/lib/Schema/Domain/Content/Mapper/FieldDefinition/ResolverVariables.php index 6ba7c08..3eb149f 100644 --- a/src/lib/Schema/Domain/Content/Mapper/FieldDefinition/ResolverVariables.php +++ b/src/lib/Schema/Domain/Content/Mapper/FieldDefinition/ResolverVariables.php @@ -59,7 +59,7 @@ public function mapToFieldValueResolver(FieldDefinition $fieldDefinition): strin if (preg_match('/value, "(.*field.*)"/i', $resolver) !== 1) { $resolver = str_replace( 'field', - 'resolver("ItemFieldValue", [value, "' . $fieldDefinition->identifier . '", args])', + 'query("ItemFieldValue", [value, "' . $fieldDefinition->identifier . '", args])', $resolver ); } diff --git a/src/lib/Schema/Domain/Content/Mapper/FieldDefinition/SelectionFieldDefinitionMapper.php b/src/lib/Schema/Domain/Content/Mapper/FieldDefinition/SelectionFieldDefinitionMapper.php index b02aefc..fcf5fc7 100644 --- a/src/lib/Schema/Domain/Content/Mapper/FieldDefinition/SelectionFieldDefinitionMapper.php +++ b/src/lib/Schema/Domain/Content/Mapper/FieldDefinition/SelectionFieldDefinitionMapper.php @@ -27,7 +27,7 @@ public function mapToFieldValueResolver(FieldDefinition $fieldDefinition): ?stri return parent::mapToFieldValueResolver($fieldDefinition); } - return '@=resolver("SelectionFieldValue", [field, content])'; + return '@=query("SelectionFieldValue", [field, content])'; } protected function getFieldTypeIdentifier(): string diff --git a/src/lib/Schema/Domain/Content/Worker/ContentType/AddItemOfTypeConnectionToGroup.php b/src/lib/Schema/Domain/Content/Worker/ContentType/AddItemOfTypeConnectionToGroup.php index be45d76..c7b7214 100644 --- a/src/lib/Schema/Domain/Content/Worker/ContentType/AddItemOfTypeConnectionToGroup.php +++ b/src/lib/Schema/Domain/Content/Worker/ContentType/AddItemOfTypeConnectionToGroup.php @@ -27,7 +27,7 @@ public function work(Builder $schema, array $args) [ 'description' => isset($descriptions['eng-GB']) ? $descriptions['eng-GB'] : 'No description available', 'resolve' => sprintf( - '@=resolver("ItemsOfTypeAsConnection", ["%s", args])', + '@=query("ItemsOfTypeAsConnection", ["%s", args])', $contentType->identifier ), 'argsBuilder' => 'Relay::Connection', diff --git a/src/lib/Schema/Domain/Content/Worker/ContentType/AddItemToGroup.php b/src/lib/Schema/Domain/Content/Worker/ContentType/AddItemToGroup.php index 5226701..cf9cd96 100644 --- a/src/lib/Schema/Domain/Content/Worker/ContentType/AddItemToGroup.php +++ b/src/lib/Schema/Domain/Content/Worker/ContentType/AddItemToGroup.php @@ -26,7 +26,7 @@ public function work(Builder $schema, array $args) $this->typeName($args), [ 'description' => isset($descriptions['eng-GB']) ? $descriptions['eng-GB'] : 'No description available', - 'resolve' => sprintf('@=resolver("ItemOfType", [args, "%s"])', $contentType->identifier), + 'resolve' => sprintf('@=query("ItemOfType", [args, "%s"])', $contentType->identifier), ] )); diff --git a/src/lib/Schema/Domain/Content/Worker/ContentType/AddItemTypeToItemGroupTypes.php b/src/lib/Schema/Domain/Content/Worker/ContentType/AddItemTypeToItemGroupTypes.php index cc4747f..60d0ff3 100644 --- a/src/lib/Schema/Domain/Content/Worker/ContentType/AddItemTypeToItemGroupTypes.php +++ b/src/lib/Schema/Domain/Content/Worker/ContentType/AddItemTypeToItemGroupTypes.php @@ -19,7 +19,7 @@ class AddItemTypeToItemGroupTypes extends BaseWorker implements Worker public function work(Builder $schema, array $args) { $resolve = sprintf( - '@=resolver("ContentType", [{"identifier": "%s"}])', + '@=query("ContentType", [{"identifier": "%s"}])', $args['ContentType']->identifier ); diff --git a/src/lib/Schema/Domain/Content/Worker/ContentTypeGroup/AddDomainGroupToDomain.php b/src/lib/Schema/Domain/Content/Worker/ContentTypeGroup/AddDomainGroupToDomain.php index 0dad342..de459fb 100644 --- a/src/lib/Schema/Domain/Content/Worker/ContentTypeGroup/AddDomainGroupToDomain.php +++ b/src/lib/Schema/Domain/Content/Worker/ContentTypeGroup/AddDomainGroupToDomain.php @@ -35,7 +35,7 @@ public function work(Builder $schema, array $args) [ 'description' => $contentTypeGroup->getDescription('eng-GB'), 'resolve' => sprintf( - '@=resolver("ContentTypeGroupByIdentifier", ["%s"])', + '@=query("ContentTypeGroupByIdentifier", ["%s"])', $contentTypeGroup->identifier ), ]