Loading TOC...

MarkLogic 9 Product Documentation
NodeBuilder.addNumber

NodeBuilder.addNumber(
   val as Number
) as This NodeBuilder object

Summary

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

Parameters
val The value of the number node.

Example

const builder = new NodeBuilder();
builder.addNumber(47);
builder.toNode();

// Returns a JSON number node containing the value 47

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