Skip to content

Commit ec316f1

Browse files
scubaflyfubhy
authored andcommitted
Fix broken entity reference query filter.
1 parent a6ba72d commit ec316f1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modules/graphql_core/src/Plugin/GraphQL/Fields/EntityReference/EntityReferenceQuery.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ public function getBaseQuery($value, array $args, ResolveContext $context, Resol
5252
return NULL;
5353
}
5454

55-
$query->condition($key, $ids);
55+
$operator = is_array($ids) ? 'IN' : '=';
56+
$query->condition($key, $ids, $operator);
5657

5758
return $query;
5859
}

0 commit comments

Comments
 (0)