
AccessPlan.prototype.whereDistinct() as ModifyPlan
This method removes duplicate rows from the row set.
whereDistinct is a method of the following classes:
const op = require('/MarkLogic/optic');
op.fromLiterals([
{id:1, val: 2},
{id:1, val: 2},
{id:2, val: 4}
])
.select()
.whereDistinct()
.result();
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.