Skip to content

Instantly share code, notes, and snippets.

View codiini's full-sized avatar

Iniubong Obonguko codiini

View GitHub Profile
@ComfortablyCoding
ComfortablyCoding / findOne-by-slug-strapi-v4.md
Last active May 2, 2022 22:07
A sample implementaion of replacing a CT findOne controller to work with a slug instead of an id for Strapi v4

Implementing findOne by slug

Create the content type

For this example we will be using the article collection content type defined below for the implementation

path: /strapi-project/src/api/article/content-types/article/schema.json