
I built both sides. The NestJS API exposes a GraphQL schema backed by PostgreSQL and Drizzle, with JWT auth and refresh-token rotation. On mobile, Apollo Codegen generates types and hooks straight from that schema, so the API and the app share one contract and a backend change breaks the build, not production. Server state lives only in the Apollo cache; Zustand handles UI state. The main challenge was the app shell. A header that follows the scroll had to work the same over plain screens and virtualized lists, without hiding the native pull-to-refresh. I pulled the scroll logic into a hook that doesn't depend on the list type, so any screen can switch to a FlatList without touching the header. The result is a codebase where new screens and API fields come with type safety by default.
PANELS
19

















