~/talk

Extending your Strapi app with lifecycle hooks, controllers and services

Talkat StrapiConf 2021 · on Thursday, 2021-04-22· [nodejs]
links:none on file
slides:none on file

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

  1. 0:00Introduction to Strapi
  2. 1:36Project goals and scope
  3. 2:26Using lifecycle methods
  4. 3:43Controllers and services
  5. 4:36Implementing lifecycle logic
  6. 5:51Customizing controllers
  7. 7:23Defining custom services
  8. 8:43Conclusion and wrap-up
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.