Overview
NocoDB provides powerful filtering capabilities to query records based on complex conditions. The SDK supports various filter operators and comparison methods.Basic Filtering
Use thewhere parameter to filter records:
Filter Syntax
The basic filter format is:Comparison Operators
| Operator | Description | Example |
|---|---|---|
eq | Equal to | (Status,eq,Active) |
neq | Not equal to | (Status,neq,Archived) |
gt | Greater than | (Age,gt,18) |
gte | Greater than or equal | (Price,gte,100) |
lt | Less than | (Stock,lt,10) |
lte | Less than or equal | (Discount,lte,50) |
like | Contains (case-insensitive) | (Name,like,john) |
nlike | Does not contain | (Email,nlike,spam) |
is | Is (for null/empty) | (Phone,is,null) |
isnot | Is not (for null/empty) | (Address,isnot,null) |
in | In list | (Department,in,Sales,Marketing) |
notin | Not in list | (Status,notin,Draft,Archived) |
blank | Is blank/empty | (Notes,blank) |
notblank | Is not blank/empty | (Title,notblank) |
Logical Operators
Combine multiple conditions with logical operators:AND Conditions
OR Conditions
Complex Conditions
Date Filtering
Filter records by date fields:Text Filtering
Search and filter text fields:Null and Empty Checks
Filter records with null or empty values:List Membership
Check if a field value is in a list:Filter Helper Functions
The SDK provides helper utilities for working with filters:Advanced Query Builder
Create a reusable query builder:Combining Filters with Sorting
Filtering with Pagination
Filter Performance Tips
1. Use Field Selection
Only request fields you need:2. Optimize Date Filters
Use indexed date columns for better performance:3. Limit Result Sets
Always use pagination for large datasets:Common Filter Patterns
Active Users
Recent Records
Search Across Multiple Fields
Incomplete Records
Next Steps
Records
Learn more about record operations
Tables
Explore table management