Groupby on reference properties

Description

Hey I’m try to fetch information using CrossRef pro
class A { name, has_add}
class B { city, country}

Query: try to list down top 5 country where name is ‘josh’

Server Setup Information

  • Weaviate Server Version:
    Version 4

Any additional Information

Hi! According to our docs:

  • The groupBy path is limited to one property or cross-reference. Nested paths are not supported.

Let me know if this helps!

Thanks!

Thanks @DudaNogueira ,
I have already go though this document.
However, I did’t found any example for “how to apply groupby on cross reference property”
I want to know how to pass crossref path in groupby .
In v3, it is easy such “has_add{…on B {city}}”. There is no document which provide information on it.