README

starwars example

This server demonstrates a few advanced features of graphql:

  • connections
  • unions
  • interfaces
  • enums

to run this server

go run ./example/starwars/server/server.go

and open http://localhost:8080 in your browser

Expand ▾ Collapse ▴

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResolver

func NewResolver() generated.Config

Types

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func (*Resolver) Droid

func (r *Resolver) Droid() generated.DroidResolver

func (*Resolver) FriendsConnection

func (r *Resolver) FriendsConnection() generated.FriendsConnectionResolver

func (*Resolver) Human

func (r *Resolver) Human() generated.HumanResolver

func (*Resolver) Mutation

func (r *Resolver) Mutation() generated.MutationResolver

func (*Resolver) Query

func (r *Resolver) Query() generated.QueryResolver

func (*Resolver) Starship

func (r *Resolver) Starship() generated.StarshipResolver

Source Files

Directories

Path Synopsis
generated
models
server