NodeBuilder.addBoolean( val as Boolean ) as This NodeBuilder object
Add a boolean node to the node tree the builder is building.
Parameters | |
---|---|
val | The value of the boolean node. |
const builder = new NodeBuilder(); builder.addBoolean(true); builder.toNode(); // Returns a JSON boolean node containing the value true
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.