Overview
Instead of passing query parameters as an object, use the Query Builder for a more readable and maintainable way to construct queries:Getting Started
Create a Query Builder
Start a query by callingquery() on the records service:
Execute the Query
Execute the query withget():
Chaining Methods
The Query Builder uses method chaining for a fluent API:Complete Example
First() Method
Get the first matching record:first() automatically sets limit(1) and skip(0) and returns a single
record or null.Reusable Queries
Create reusable query functions:Query Builder Methods
Next Steps
- Filtering - Advanced filtering techniques
- Sorting - Sort query results
- Pagination - Paginate large result sets