op:result( $plan as map:map, [$outType as xs:string?], [$bindings as map:map] ) as xs:string?
This method executes the plan (mapping or reducing, if specified) to generate the result,
which is a sequence of map:map
or json:array
rows,
unless mapped or reduced to different output.
xquery version "1.0-ml"; import module namespace op="http://marklogic.com/optic" at "/MarkLogic/optic.xqy"; op:from-view("main", "employees") => op:select(("EmployeeID", "FirstName", "LastName")) => op:order-by("EmployeeID") => op:result()
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.