It will return all first values. Then you can use Paginate(Distinct(Match(Index('myIndex')))).
The issue is that you don’t have the ref, which can be more complicated, but using Join and an other Index or finding an other way might be possible. But I guess I don’t know what you really want for the next steps.
I am going into same direction right now, although I need only distinct values which you specified for now, I am sure in very near future I will need ref for sure. So trying to build something which returns ref too. Thanks for the reply though…
This query can miss some entries. Consider the below sample data and Distinct(Match(Index("myIndex"))) will have only one GRACE and Select('ref', Get(Match(Index('myIndexByFirst'), x))) will only fetch one entry while you wanted two.
@n44ps No worries, good discussion and brainstorming. I appreciate your contribution to the Fauna Community. Up to @gschauhan to design per their need.