Documentation
¶
Overview ¶
Example: a complete GraphQL service wired with nexus's reflective controller API. Per-resolver middleware names, arg validators, and deprecation flow automatically from nexus/graph introspection.
- per-domain nexus.Module (advertsModule)
- managers (DBManager, CacheManager) describe their resources via NexusResources(); nexus.ProvideResources registers + auto-attaches them — no resourcesModule boilerplate
- resolvers are plain Go functions; nexus.AsQuery / AsMutation reflect on them and build the typed graph.Resolver under the hood
- rate-limit bundles built once (init.go#createRateLimit) and attached via nexus.Use — same value works on REST or GraphQL
- nexus owns the full boot story — no go.uber.org/fx import visible
Run: go run ./examples/graphapp → http://localhost:8080/__nexus/
Click to show internal directories.
Click to hide internal directories.