Loading TOC...

es:copy-attachments

es:copy-attachments(
   destination as map:map,
   source as xs:string
) as map:map

Summary

This function is deprecated and will not be supported in MarkLogic 11.
A utility function used in a generated version translator module to copy attachment data from a source instance to a destination instance.

Parameters
destination A json:object to which attachments will be copied.
source Zero or more instance envelopes or canonical instances from which to copy attachments to destination.

Usage Notes

You will not usually call this function outside of a version translator module generated by Entity Services. The generated code uses this function to copy attachments from one instance version to another.

See Also

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