graphapp

command
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 9 Imported by: 0

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/

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL