MarkLogic 9 Product Documentation
NodeBuilder.addBoolean

NodeBuilder.addBoolean(
   val as Boolean
) as This NodeBuilder object

Summary

Add a boolean node to the node tree the builder is building.

Parameters
val The value of the boolean node.

Example

const builder = new NodeBuilder();
builder.addBoolean(true);
builder.toNode();

// Returns a JSON boolean node containing the value true
Powered by MarkLogic Server | Terms of Use | Privacy Policy