Aggregate count - only counts distinct?


#1

Hello!

Question with regards to the aggregate count query: consider having a model with 2 entities that are in a relationship with each other.

If I perform the following queries

match $x isa Entity1; aggregate count $x;
Result:
22

match $x isa Entity2; aggregate count $x;
Result:
46

match $X isa Entity1; $Y isa Entity2; ($X, $Y) isa REL1; aggregate count $X
Result:
46

Is is possible to get the distinct count of entity X in the latter case? I.e. I expected the count to be returned to be smaller or equal to 22.

Cheers,

Greet