Loading TOC...

MarkLogic 10 Product Documentation
AccessPlan.prototype.whereDistinct

AccessPlan.prototype.whereDistinct() as ModifyPlan

Summary

This method removes duplicate rows from the row set.

Usage Notes

whereDistinct is a method of the following classes:

Example

const op = require('/MarkLogic/optic');

op.fromLiterals([
            {id:1, val: 2},
            {id:1, val: 2},
            {id:2, val: 4}
	        ])
   .select()
   .whereDistinct()
   .result();
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.