op:import( $importablePlan as item() ) as map:map
This function instantiates a plan from the JSON representation of a plan that was exported by the op:export function.
For more information, see Exporting and Importing a Serialized Optic Query in the Application Developer's Guide
Parameters | |
---|---|
$importablePlan | The plan to be imported. This is generated by the op:export function. |
xquery version "1.0-ml"; import module namespace op="http://marklogic.com/optic" at "/MarkLogic/optic.xqy"; op:import(fn:doc('plan.json')/node()) =>op:result()