Introduction
The Strapi data provider enables you to build Refine applications with Strapi v4, a leading open-source headless CMS. It provides full support for CRUD operations, file uploads, and authentication.Installation
Install the Strapi v4 data provider package:Setup
Create Strapi project
First, create a Strapi v4 project or use an existing one. Visit strapi.io/documentation for setup instructions.
Basic Usage
Get List
Fetch a list of records from a Strapi collection:Get One
Fetch a single record by ID:Create
Create a new record:Update
Update an existing record:Delete
Delete a record:Authentication
The Strapi data provider includes an auth helper for handling authentication:Populate Relations
Use thepopulate meta property to include related data:
File Upload
Handle file uploads with Strapi’s upload feature:Advanced Filtering
Strapi supports complex filters:Locale Support
Work with internationalized content:Publication State
Filter by publication state:Complete Example
Supported Operators
The Strapi data provider supports the following filter operators:eq: Equalsne: Not equalslt: Less thanlte: Less than or equalgt: Greater thangte: Greater than or equalin: In arraynin: Not in arraycontains: Contains (case-sensitive)containsi: Contains (case-insensitive)null: Is nullnnull: Is not null
Next Steps
Data Providers Overview
Learn about other data providers
Strapi Documentation
Explore Strapi v4 features