
ModifyPlan.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();