Collection.distinct()

Syntax

collection.distinct()

Return Value

This Collection instance (this)

Remarks

Removes any duplicates of primary keys in the collection. Useful only when working with multi valued indexes, see Version.stores()