Skip to main content

DISTINCT

Deprecated version

This document refers to a deprecated version of the RQL programming language.

Please go here for documentation related to the latest supported version.

Removes repeated elements of the collection.

Order is not maintained. The equality comparison used to determine duplicates follows the same semantics as the GROUP BY expression of the SELECT.

Syntax
DISTINCT(<collection>)
Example
DISTINCT([1,1,2]) // [1,2]