Files
stpweb/backend/graph/doc.go
adamfandClaude Opus 5.5 4530cb8dc4
Test and deploy / test (push) Successful in 28s
Test and deploy / deploy (push) Successful in 31s
Trim comments to the non-obvious why
Drop narration, history and restated-code comments across the repo,
keep short ones for security boundaries, upstream quirks and ordering
constraints, and record the convention in CLAUDE.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 20:49:03 +00:00

16 lines
733 B
Go

// Package graph is the GraphQL layer behind POST /graphql.
//
// graph/schema/*.graphql is the source of truth; gqlgen regenerates
// generated.go and model/models_gen.go (never edit them). gqlgen.yml maps
// object types onto the GORM structs in backend/models.
//
// Nothing guards the endpoint itself. A field is protected only by an
// @admin or @signedIn directive (directives.go); a field with neither is
// public. directives_test.go fails if a mutation has neither and isn't on its
// public allow-list. Finer rules (post ownership, hiding private messages)
// live in resolvers via IsAdminFromCtx / UserIDFromCtx.
//
// gqlgen may move hand-written code in *.resolvers.go; _helpers.go files are
// untouched.
package graph