Prism · Arrays
$unique
Removes repeated values from an array, keeping the first of each. Values are compared by their JSON text, so objects and arrays count too.
{ tags: ['draft', 'review', 'draft', 'done', 'review'] }{ $unique: { $ref: '$.tags' } }['draft', 'review', 'done']
Runs in this page on the installed package. The input and the expected output are defined by the example.