Skip to main content

SOQL Lib

Get started

Lightweight Selector Classes

Keep your selector classes minimal, focusing only on essential query configurations (fields, sharing settings) and generic methods (byId, byRecordType).
Lightweight Selector Classes

Build SOQL Inline with a Query Builder

Most queries are business-specific. Define them exactly where they’re needed using SOQL Lib’s builder, keeping the Selector class for only generic or reusable queries.
Build SOQL Inline with a Query Builder

Full Control of FLS and Sharing

Easily enforce Field-Level Security and sharing rules using .systemMode(), .withSharing(), or .withoutSharing().
Full Control of FLS and Sharing

Mock SOQL for Faster Tests

Boost unit test performance by mocking SOQL results, reducing the need for complex test data setups.
Mock SOQL for Faster Tests

Accelerate Performance with Cached Selectors

Store records in Apex transactions, Org Cache, or Session Cache, minimizing redundant queries for faster performance.
Accelerate Performance with Cached Selectors

Enhanced SOQL Toolkit

Leverage a suite of predefined methods to simplify query results and reduce code complexity.
Enhanced SOQL Toolkit