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
Powered by MarkLogic Server | Terms of Use | Privacy Policy