Loading TOC...

opdsl functions (Optic Query DSL)

This is the Optic DSL module, which is used to parse the Query DSL representation of an Optic query. The Query DSL representation uses a narrow subset of JavaScript syntax consisting of the JavaScript statement that builds the query.

To use this module in your Server-Side JavaScript code, include an import statement similar to following line in your code:

                   import opdsl from '/MarkLogic/optic/optic-dsl-js.mjs';
               
1 function
Function name Description
opdsl.import This function takes the Query DSL representation of an Optic query as a string or text and returns the built query, which can then be executed with the prototype.result method.