Loading TOC...

MarkLogic 12 EA 1 Product Documentation
op:not

op:not(
   $operand as item()
) as map:map

Summary

This function returns true if neither of the specified boolean expressions return true. Otherwise, it returns false.

Parameters
$operand Exactly one boolean expression, such as op:and or op:or, or op:is-defined.

Example

xquery version "1.0-ml";

import module namespace op="http://marklogic.com/optic"
     at "/MarkLogic/optic.xqy";

op:from-literals((
    map:entry("group", 1) => map:with("val", 2),
    map:entry("group", 1) => map:with("val", 4),
    map:entry("group", 2) => map:with("val", 3),
    map:entry("group", 2) => map:with("val", 5),
    map:entry("group", 2) => map:with("val", 7)
    ))
        => op:where(op:not(op:eq(op:col("group"), 2)))
        => op:result()   
             
  

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