~/talk

Repository in Nuxt with GraphQL: a Data Layer that doesn’t turn into spaghetti

TalkinRussianat HolyJS 2025 Autumn · 2025-11-20..11-21· [vue, graphql]
links:none on file
slides:none on file

Shows how to replace ad-hoc useFetch calls in Nuxt + GraphQL apps with a Repository-style data layer so components contain no network logic and backend changes don’t break the UI. Covers concrete techniques: integrating a Repository pattern into Nuxt, using GraphQL Codegen sensibly for typing, and extracting a shared API layer via Nuxt Layers to reuse the same API code and rules across projects.

AI-written summary · about

  1. 0:00Introduction
  2. 2:08Projects to product architecture
  3. 9:14Direct server issues
  4. 12:07Repository transport layer
  5. 14:15Query factory and errors
  6. 16:20Plugins module init
  7. 18:06Business logic separation
  8. 18:48Typing issues with GraphQL Codegen
  9. 21:18Types, fragments, generation
  10. 24:47Structure and centralization problems
  11. 26:15Next Layers solution
  12. 29:45External and local layers
  13. 31:50Layer setup and loading
  14. 33:59Adding query instructions
  15. 36:05Summary
  16. 37:07Q&A
~/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.