starwars

package
v0.0.0-...-89be4ce Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2019 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package starwars provides a example schema and resolver based on Star Wars characters.

Source: https://github.com/graphql/graphql.github.io/blob/source/site/_core/swapiSchema.js

Index

Constants

This section is empty.

Variables

View Source
var Schema = `` /* 3854-byte string literal not displayed */

Functions

This section is empty.

Types

type Resolver

type Resolver struct{}

func (*Resolver) Character

func (r *Resolver) Character(args struct{ ID graphql.ID }) *characterResolver

func (*Resolver) CreateReview

func (r *Resolver) CreateReview(args *struct {
	Episode string
	Review  *reviewInput
}) *reviewResolver

func (*Resolver) Droid

func (r *Resolver) Droid(args struct{ ID graphql.ID }) *droidResolver

func (*Resolver) Hero

func (r *Resolver) Hero(args struct{ Episode string }) *characterResolver

func (*Resolver) Human

func (r *Resolver) Human(args struct{ ID graphql.ID }) *humanResolver

func (*Resolver) Reviews

func (r *Resolver) Reviews(args struct{ Episode string }) []*reviewResolver

func (*Resolver) Search

func (r *Resolver) Search(args struct{ Text string }) []*searchResultResolver

func (*Resolver) Starship

func (r *Resolver) Starship(args struct{ ID graphql.ID }) *starshipResolver

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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