Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin.databaseField

admin.databaseField(
   field-name as String,
   include-root as Boolean
) as element(db.field)

Summary

This function constructs a field specification.

Parameters
field-name The name of the field.
include-root A boolean value, true to start including at the root, false to not include until an included element is reached.

Example

  
  const admin = require('/MarkLogic/admin.xqy');
  admin.databaseField("myField", fn.true() )

   //the constructed element 
  

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