Despliega 1000+ apps y plantillas en un clic
Recetas listas para Wasmer.
Recetas listas para Wasmer.
A Star Wars GraphQL API in Go with gqlgen, explored in Apollo Sandbox with a ready-to-run query.

A GraphQL server written in Go with gqlgen. It serves the Star Wars schema from gqlgen's own example and opens Apollo Sandbox with an example query loaded, so you can run it straight away.
Deploy your own copy and open its URL. The sandbox opens with a HeroAndFriends query; press the run button to see Luke Skywalker and his friends. Browse the schema in the Documentation panel, or paste:
{
hero(episode: EMPIRE) {
name
friends { name }
}
search(text: "an") {
__typename
... on Human { name height }
... on Starship { name length }
}
}
The schema shows connections, unions, interfaces and enums. Data is in memory, so it resets when the app restarts; createReview keeps the latest 100 reviews per episode.
schema.graphql defines the API; gqlgen generates generated/ and models/ from it (.gqlgen.yml).resolvers.go answers queries from in-memory Star Wars data.server/server.go serves Apollo Sandbox at / and the API at /query (GET and POST), and listens on PORT, defaulting to 8080./query sends CORS headers that allow any origin. That suits this public, credential-free demo; restrict the origin before serving private data.<< button to reach the editor.No database, API key or persistent volume is required.
Use Go 1.25 or newer:
cd go-graphql
go run ./server
Open http://localhost:8080/. Run the tests with go test ./....
To change the API, edit schema.graphql, run go run github.com/99designs/gqlgen generate, then update resolvers.go.
https://github.com/wasmerio/examples in Wasmer and set the root directory to go-graphql, or upload the contents of this directory as a folder.From the CLI:
cd go-graphql
wasmer deploy --build-remote