soql-parser-lite - v1.0.1
    Preparing search index...

    Function parseSoqlQuery

    • Parses a SOQL query string and returns the structured query representation.

      Parameters

      • soql: string

        The SOQL query string to parse

      Returns SoqlQuery

      The parsed SOQL query structure

      SoqlParserError if the query is invalid or malformed

      const query = parseSoqlQuery('SELECT Id, Name FROM Account WHERE Status = "Active" LIMIT 10');
      console.log(query.select.items); // Access the selected fields
      console.log(query.where?.expr); // Access the WHERE condition