diff --git a/evita_query/src/main/java/io/evitadb/api/query/filter/ReferenceHaving.java b/evita_query/src/main/java/io/evitadb/api/query/filter/ReferenceHaving.java index 2fff775b2..2350576d2 100644 --- a/evita_query/src/main/java/io/evitadb/api/query/filter/ReferenceHaving.java +++ b/evita_query/src/main/java/io/evitadb/api/query/filter/ReferenceHaving.java @@ -101,7 +101,7 @@ public String getReferenceName() { @Override public boolean isNecessary() { - return getArguments().length == 1 && getChildren().length == 1; + return getArguments().length == 1 && getChildren().length >= 1; } @AliasForParameter("filter")