Extending your Strapi app with lifecycle hooks, controllers and services
summary
Quick demo wiring a Next.js app through Apollo GraphQL into Strapi v3 that actually builds a "trip" record and shows it works: a lifecycle method rejects creates unless a covid checkbox is true (demo fails/succeeds), the controller overrides the default create to attach the authenticated user to the trip’s traveler relation, and a custom service receives the created trip and logs a notification. Code snippets run live in the demo and each step returns the expected result.
AI-written summary · about
chapters (8)
- 0:00Introduction to Strapi
- 1:36Project goals and scope
- 2:26Using lifecycle methods
- 3:43Controllers and services
- 4:36Implementing lifecycle logic
- 5:51Customizing controllers
- 7:23Defining custom services
- 8:43Conclusion and wrap-up








