Strapi Study Cases

screenshot of Strapi Study Cases

strapi use cases when study, maybe it can help someone else.

Overview:

This repository showcases different use cases of using Strapi, an open-source Node.js Headless CMS. The author, who is new to Strapi, has compiled running examples to study and better understand the platform. The examples include flattening GraphQL results, adding a refresh token API, customizing GraphQL queries, extending core controllers, and setting limitations on populated fields.

Features:

  • Flatten GraphQL Result of V4: Provides a modified documentation on how to flatten GraphQL results in version 4.
  • Run the Cases: Provides instructions on running the examples locally and online.
  • Add a Refresh Token API: A case that demonstrates how to add a refresh token API to issue new tokens when the existing one expires.
  • Customizing GraphQL Query as Refresh Token: Explains how to customize other plugin's interface by modifying the entry file.
  • Extend Core Controllers: Guides on extending entity update and create controllers for customization purposes.
  • Set Limitation of Populate Fields: Shows how to set limitations on populated fields using core controllers.
  • Add Filters to Strapi Controller: Provides a code example on adding filters such as _limit to a Strapi controller.

Summary:

This repository serves as a collection of running examples for using Strapi, an open-source Node.js Headless CMS. It aims to provide practical cases for new users to study and gain a better understanding of the platform. The examples cover various aspects of customization, such as flattening GraphQL results, adding a refresh token API, customizing GraphQL queries, extending core controllers, and setting limitations on populated fields. These examples can be used as a reference and guide for implementing similar functionality in Strapi projects.