MarkLogic provides a possibility to see how the given search expression will be processed by the index. XQuery function xdmp:plan is responsible for that - https://docs.marklogic.com/xdmp:plan
The way it works is perfectly described here - https://www.marklogic.com/blog/working-with-xdmp-plan/
My question is if there is JavaScript analog of that function? How can I analyze the queries written in JavaScript?