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'); const fieldName = "myField" const fieldPaths = admin.databaseFieldPath("/a/b", xs.double(2.0)) admin.databasePathField(fieldName,fieldPaths)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.