Introduction
The NestJS Query data provider enables you to build Refine applications with NestJS Query, a GraphQL library for NestJS. It provides full support for CRUD operations, filtering, sorting, and real-time subscriptions.Installation
Install the NestJS Query data provider and required dependencies:Setup
Basic Usage
Get List
Fetch a list of records with NestJS Query conventions:Get One
Fetch a single record by ID:Create
Create a new record:Update
Update an existing record:Delete
Delete a record:Filtering
NestJS Query provides powerful filtering capabilities:Sorting
Sort records using NestJS Query sorting:Real-time Subscriptions
Enable real-time updates using GraphQL subscriptions:Relations
Query related data using NestJS Query relations:Aggregations
Use NestJS Query aggregations:Authentication
Add authentication to your GraphQL client:Complete Example
Filter Operators
The NestJS Query data provider supports the following filter operators:eq: Equalsneq: Not equalsgt: Greater thangte: Greater than or equallt: Less thanlte: Less than or equallike: Like (SQL LIKE)notLike: Not likeiLike: Case-insensitive likenotILike: Case-insensitive not likein: In arraynotIn: Not in arrayis: Is (for booleans/null)isNot: Is not
Next Steps
Data Providers Overview
Learn about other data providers
NestJS Query Docs
Explore NestJS Query features