Versions in this module Expand all Collapse all v0 v0.4.4 Aug 17, 2018 Changes in this version + func NewExecutableSchema(cfg Config) graphql.ExecutableSchema + type Character interface + type CharacterFields struct + AppearsIn []Episode + FriendIds []string + ID string + Name string + type Config struct + Directives DirectiveRoot + Resolvers ResolverRoot + func NewResolver() Config + type DirectiveRoot struct + type Droid struct + PrimaryFunction string + type DroidResolver interface + Friends func(ctx context.Context, obj *Droid) ([]Character, error) + FriendsConnection func(ctx context.Context, obj *Droid, first *int, after *string) (FriendsConnection, error) + type Episode string + const EpisodeEmpire + const EpisodeJedi + const EpisodeNewhope + func (e *Episode) UnmarshalGQL(v interface{}) error + func (e Episode) IsValid() bool + func (e Episode) MarshalGQL(w io.Writer) + func (e Episode) String() string + type FriendsConnection struct + func (f *FriendsConnection) PageInfo() PageInfo + func (f *FriendsConnection) TotalCount() int + type FriendsConnectionResolver interface + Edges func(ctx context.Context, obj *FriendsConnection) ([]FriendsEdge, error) + Friends func(ctx context.Context, obj *FriendsConnection) ([]Character, error) + type FriendsEdge struct + Cursor string + Node Character + type Human struct + Mass float64 + StarshipIds []string + func (h *Human) Height(unit LengthUnit) float64 + type HumanResolver interface + Friends func(ctx context.Context, obj *Human) ([]Character, error) + FriendsConnection func(ctx context.Context, obj *Human, first *int, after *string) (FriendsConnection, error) + Starships func(ctx context.Context, obj *Human) ([]Starship, error) + type LengthUnit string + const LengthUnitFoot + const LengthUnitMeter + func (e *LengthUnit) UnmarshalGQL(v interface{}) error + func (e LengthUnit) IsValid() bool + func (e LengthUnit) MarshalGQL(w io.Writer) + func (e LengthUnit) String() string + type MutationResolver interface + CreateReview func(ctx context.Context, episode Episode, review Review) (*Review, error) + type PageInfo struct + EndCursor string + HasNextPage bool + StartCursor string + type QueryResolver interface + Character func(ctx context.Context, id string) (Character, error) + Droid func(ctx context.Context, id string) (*Droid, error) + Hero func(ctx context.Context, episode Episode) (Character, error) + Human func(ctx context.Context, id string) (*Human, error) + Reviews func(ctx context.Context, episode Episode, since *time.Time) ([]Review, error) + Search func(ctx context.Context, text string) ([]SearchResult, error) + Starship func(ctx context.Context, id string) (*Starship, error) + type Resolver struct + func (r *Resolver) Droid() DroidResolver + func (r *Resolver) FriendsConnection() FriendsConnectionResolver + func (r *Resolver) Human() HumanResolver + func (r *Resolver) Mutation() MutationResolver + func (r *Resolver) Query() QueryResolver + func (r *Resolver) Starship() StarshipResolver + type ResolverRoot interface + Droid func() DroidResolver + FriendsConnection func() FriendsConnectionResolver + Human func() HumanResolver + Mutation func() MutationResolver + Query func() QueryResolver + Starship func() StarshipResolver + type Review struct + Commentary *string + Stars int + Time time.Time + func UnmarshalReviewInput(v interface{}) (Review, error) + type SearchResult interface + type Starship struct + History [][]int + ID string + Length float64 + Name string + type StarshipResolver interface + Length func(ctx context.Context, obj *Starship, unit LengthUnit) (float64, error)