admin.databasePathField( field-name as String, field-paths as element(db.fieldPath)[] ) as element(db.field)
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. |
const admin = require('/MarkLogic/admin.xqy'); var fieldName = "myField" var fieldPaths = admin.databaseFieldPath("/a/b", xs.double(2.0)) admin.databasePathField(fieldName,fieldPaths)