Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin.databasePathField

admin.databasePathField(
   field-name as String,
   field-paths as element(db.fieldPath)[]
) as element(db.field)

Summary

This function constructs a field specification that has field paths.

Parameters
field-name The name of the field.
field-paths The field paths specification, typically the result of one or more calls for admin:database-field-path.

Example

const admin = require('/MarkLogic/admin.xqy');
const fieldName = "myField"
const fieldPaths = admin.databaseFieldPath("/a/b", xs.double(2.0))
   admin.databasePathField(fieldName,fieldPaths)

 

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