MarkLogic 12 EA 1 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)

 
Powered by MarkLogic Server | Terms of Use | Privacy Policy