map.apps Bundle APIs 4.20.0
    Preparing search index...

    AST representation of a complex query.

    interface AST {
        optimize(): AST;
        queryOptions: ComplexQueryOptions;
        root(): undefined | ASTNode;
        walker(): Walker;
    }
    Index

    Properties

    Methods

    Properties

    queryOptions: ComplexQueryOptions

    Query options used to parse the query.

    Methods

    • Function to be called after modification of the AST to reduce useless '$and' or '$or' operators.

      Returns AST

      the optimized AST (not a copy!)

    • Function to provide access to the root node.

      Returns undefined | ASTNode

    • Function to create a walker for easier visiting of nodes in the AST.

      Returns Walker