Skip to content

Commit 20b89ec

Browse files
authored
Fixing entity query arguments. (#520)
1 parent 71f5c5f commit 20b89ec

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

modules/graphql_core/src/Plugin/Deriver/Fields/EntityReferenceReverseDeriver.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,6 @@ public function getDerivativeDefinitions($basePluginDefinition) {
9898
] + $basePluginDefinition;
9999

100100
/** @var \Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface $definition */
101-
$definition = $this->typedDataManager->createDataDefinition("entity:$targetTypeId");
102-
$properties = $definition->getPropertyDefinitions();
103-
$queryableProperties = array_filter($properties, function ($property) {
104-
return $property instanceof BaseFieldDefinition && $property->isQueryable();
105-
});
106-
107-
if (!empty($queryableProperties)) {
108-
$derivative['arguments']['filter'] = [
109-
'type' => StringHelper::camelCase($targetTypeId, 'query', 'filter', 'input'),
110-
];
111-
}
112-
113101
$this->derivatives["$entityTypeId-$fieldName"] = $derivative;
114102
}
115103
}

modules/graphql_core/src/Plugin/GraphQL/InputTypes/EntityQuery/EntityQuerySortInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* fields = {
1212
* "field" = "String!",
1313
* "direction" = {
14-
* "type" = "SortEnum",
14+
* "type" = "SortOrder",
1515
* "default" = "DESC"
1616
* }
1717
* }

0 commit comments

Comments
 (0)