@wxn0brp/vql
    Preparing search index...

    Function extractMeta

    • Extracts metadata from a query string, including database name, operation, collection name, and the query body.

      Parameters

      • input: string

        The input string to extract the information from.

      Returns { body: string; collection: string; db: string; op: string }

      An object with the following properties:

      • db: The database name.
      • op: The operation to perform, such as "find", "findOne", "add", "update", or "remove".
      • collection: The collection name.
      • body: The query body.