example/

directory
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: BSD-2-Clause

Directories

Path Synopsis
cache
Package cache implements caching of GraphQL requests by allowing resolvers to provide hints about their cacheability, which can be used by the transport handlers (e.g.
Package cache implements caching of GraphQL requests by allowing resolvers to provide hints about their cacheability, which can be used by the transport handlers (e.g.
server command
Package main demonstrates a simple web app that uses type-safe enums in a GraphQL resolver.
Package main demonstrates a simple web app that uses type-safe enums in a GraphQL resolver.
federation
compatibility command
internal
graphiql
Package graphiql serves the shared GraphiQL UI used by multiple examples.
Package graphiql serves the shared GraphiQL UI used by multiple examples.
This example demonstrates a 3-level hierarchy (Author -> Books -> Reviews) with data prefetching at each level to avoid N+1 query problems.
This example demonstrates a 3-level hierarchy (Author -> Books -> Reviews) with data prefetching at each level to avoid N+1 query problems.
server command
Package starwars provides a example schema and resolver based on Star Wars characters.
Package starwars provides a example schema and resolver based on Star Wars characters.
server command

Jump to

Keyboard shortcuts

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