Server Runtime
The server runtime begins with config, Fastify, cookies, CORS, validation, and GraphQL module construction.
The reference app uses Fastify because refresh-cookie transport needs reply
objects with setCookie and clearCookie. Express can work only if the app
adapts the GraphQL context to that transport shape.
Runtime Layers
@omgjs/labkit-server-configreads host, port, GraphQL path, CORS, and refresh transport choices.@omgjs/labkit-server-observabilitylogs structured startup and runtime events.@omgjs/labkit-server-graphqlcreates the Nest Apollo module and HTTP/WS context.@omgjs/labkit-server-authplugs access-token verification into GraphQL context.
The app supplies modules, DTOs, resolvers, and token services.
Context Rule
Every resolver should be able to answer: is this request anonymous or does it
have a principal? Public routes allow null. Protected routes require a
principal through guards or resolver-level checks.