Versions in this module Expand all Collapse all v0 v0.0.1 Oct 26, 2023 Changes in this version + var AllSpecies = []Species + func NewExecutableSchema(cfg Config) graphql.ExecutableSchema + func RunServer() *httptest.Server + type Animal struct + Hair *BeingsHair + ID string + Name string + Owner Being + Species Species + func (Animal) IsBeing() + func (this Animal) GetID() string + func (this Animal) GetName() string + type Being interface + GetID func() string + GetName func() string + IsBeing func() + type BeingsHair struct + HasHair bool + type ComplexityRoot struct + Animal struct{ ... } + BeingsHair struct{ ... } + Hair struct{ ... } + Mutation struct{ ... } + Query struct{ ... } + User struct{ ... } + type Config struct + Complexity ComplexityRoot + Directives DirectiveRoot + Resolvers ResolverRoot + type DirectiveRoot struct + type Hair struct + Color *string + type Lucky interface + GetLuckyNumber func() *int + IsLucky func() + type MutationResolver interface + CreateUser func(ctx context.Context, input NewUser) (*User, error) + type NewUser struct + Name string + type QueryResolver interface + Being func(ctx context.Context, id string) (Being, error) + Beings func(ctx context.Context, ids []string) ([]Being, error) + Fail func(ctx context.Context) (*bool, error) + LotteryWinner func(ctx context.Context, number int) (Lucky, error) + Me func(ctx context.Context) (*User, error) + User func(ctx context.Context, id *string) (*User, error) + UserSearch func(ctx context.Context, birthdate *string, id *string) ([]*User, error) + UsersBornOn func(ctx context.Context, date string) ([]*User, error) + UsersBornOnDates func(ctx context.Context, dates []string) ([]*User, error) + type ResolverRoot interface + Mutation func() MutationResolver + Query func() QueryResolver + type Species string + const SpeciesCoelacanth + const SpeciesDog + func (e *Species) UnmarshalGQL(v interface{}) error + func (e Species) IsValid() bool + func (e Species) MarshalGQL(w io.Writer) + func (e Species) String() string + type User struct + Birthdate *string + Friends []*User + Hair *Hair + ID string + LuckyNumber *int + Name string + func (User) IsBeing() + func (User) IsLucky() + func (this User) GetID() string + func (this User) GetLuckyNumber() *int + func (this User) GetName() string