Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Film struct { Id func(childComplexity int) int Title func(childComplexity int) int EpisodeId func(childComplexity int) int OpeningCrawl func(childComplexity int) int Director func(childComplexity int) int Producer func(childComplexity int) int ReleaseDate func(childComplexity int) int Species func(childComplexity int) int Starships func(childComplexity int) int Vehicles func(childComplexity int) int Characters func(childComplexity int) int Planets func(childComplexity int) int } FilmConnection struct { PageInfo func(childComplexity int) int Edges func(childComplexity int) int TotalCount func(childComplexity int) int } FilmEdge struct { Node func(childComplexity int) int Cursor func(childComplexity int) int } PageInfo struct { HasNextPage func(childComplexity int) int HasPreviousPage func(childComplexity int) int StartCursor func(childComplexity int) int EndCursor func(childComplexity int) int } People struct { Id func(childComplexity int) int Name func(childComplexity int) int BirthYear func(childComplexity int) int EyeColor func(childComplexity int) int Gender func(childComplexity int) int HairColor func(childComplexity int) int Height func(childComplexity int) int Mass func(childComplexity int) int SkinColor func(childComplexity int) int Homeworld func(childComplexity int) int Films func(childComplexity int) int Species func(childComplexity int) int Starships func(childComplexity int) int Vehicles func(childComplexity int) int } PeopleConnection struct { PageInfo func(childComplexity int) int Edges func(childComplexity int) int TotalCount func(childComplexity int) int } PeopleEdge struct { Node func(childComplexity int) int Cursor func(childComplexity int) int } Planet struct { Id func(childComplexity int) int Name func(childComplexity int) int Diameter func(childComplexity int) int RotationPeriod func(childComplexity int) int OrbitalPeriod func(childComplexity int) int Gravity func(childComplexity int) int Population func(childComplexity int) int Climate func(childComplexity int) int Terrain func(childComplexity int) int SurfaceWater func(childComplexity int) int Residents func(childComplexity int) int Films func(childComplexity int) int } PlanetConnection struct { PageInfo func(childComplexity int) int Edges func(childComplexity int) int TotalCount func(childComplexity int) int } PlanetEdge struct { Node func(childComplexity int) int Cursor func(childComplexity int) int } Query struct { People func(childComplexity int, id string) int Film func(childComplexity int, id string) int Starship func(childComplexity int, id string) int Vehicle func(childComplexity int, id string) int Specie func(childComplexity int, id string) int Planet func(childComplexity int, id string) int Peoples func(childComplexity int, first *int, after *string) int Films func(childComplexity int, first *int, after *string) int Starships func(childComplexity int, first *int, after *string) int Vehicles func(childComplexity int, first *int, after *string) int Species func(childComplexity int, first *int, after *string) int Planets func(childComplexity int, first *int, after *string) int PeopleSearch func(childComplexity int, search string, first *int, after *string) int FilmsSearch func(childComplexity int, search string, first *int, after *string) int StarshipsSearch func(childComplexity int, search string, first *int, after *string) int VehiclesSearch func(childComplexity int, search string, first *int, after *string) int SpeciesSearch func(childComplexity int, search string, first *int, after *string) int PlanetsSearch func(childComplexity int, search string, first *int, after *string) int } Specie struct { Id func(childComplexity int) int Name func(childComplexity int) int Classification func(childComplexity int) int Designation func(childComplexity int) int AverageHeight func(childComplexity int) int AverageLifespan func(childComplexity int) int EyeColors func(childComplexity int) int HairColors func(childComplexity int) int SkinColors func(childComplexity int) int Language func(childComplexity int) int Homeworld func(childComplexity int) int Vehicle func(childComplexity int) int Films func(childComplexity int) int People func(childComplexity int) int } SpecieConnection struct { PageInfo func(childComplexity int) int Edges func(childComplexity int) int TotalCount func(childComplexity int) int } SpecieEdge struct { Node func(childComplexity int) int Cursor func(childComplexity int) int } Starship struct { Id func(childComplexity int) int Name func(childComplexity int) int Model func(childComplexity int) int StarshipClass func(childComplexity int) int Manufacturer func(childComplexity int) int CostInCredits func(childComplexity int) int Length func(childComplexity int) int Crew func(childComplexity int) int Passengers func(childComplexity int) int MaxAtmospheringSpeed func(childComplexity int) int HyperdriveRating func(childComplexity int) int Mglt func(childComplexity int) int CargoCapacity func(childComplexity int) int Consumables func(childComplexity int) int Films func(childComplexity int) int Pilots func(childComplexity int) int } StarshipConnection struct { PageInfo func(childComplexity int) int Edges func(childComplexity int) int TotalCount func(childComplexity int) int } StarshipEdge struct { Node func(childComplexity int) int Cursor func(childComplexity int) int } Vehicle struct { Id func(childComplexity int) int Name func(childComplexity int) int Model func(childComplexity int) int VehicleClass func(childComplexity int) int Manufacturer func(childComplexity int) int Length func(childComplexity int) int CostInCredits func(childComplexity int) int Crew func(childComplexity int) int Passengers func(childComplexity int) int MaxAtmospheringSpeed func(childComplexity int) int CargoCapacity func(childComplexity int) int Consumables func(childComplexity int) int Films func(childComplexity int) int Pilots func(childComplexity int) int } VehicleConnection struct { PageInfo func(childComplexity int) int Edges func(childComplexity int) int TotalCount func(childComplexity int) int } VehicleEdge struct { Node func(childComplexity int) int Cursor func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type QueryResolver ¶
type QueryResolver interface { People(ctx context.Context, id string) (*model.People, error) Film(ctx context.Context, id string) (*model.Film, error) Starship(ctx context.Context, id string) (*model.Starship, error) Vehicle(ctx context.Context, id string) (*model.Vehicle, error) Specie(ctx context.Context, id string) (*model.Specie, error) Planet(ctx context.Context, id string) (*model.Planet, error) Peoples(ctx context.Context, first *int, after *string) (model.PeopleConnection, error) Films(ctx context.Context, first *int, after *string) (model.FilmConnection, error) Starships(ctx context.Context, first *int, after *string) (model.StarshipConnection, error) Vehicles(ctx context.Context, first *int, after *string) (model.VehicleConnection, error) Species(ctx context.Context, first *int, after *string) (model.SpecieConnection, error) Planets(ctx context.Context, first *int, after *string) (model.PlanetConnection, error) PeopleSearch(ctx context.Context, search string, first *int, after *string) (*model.PeopleConnection, error) FilmsSearch(ctx context.Context, search string, first *int, after *string) (*model.FilmConnection, error) StarshipsSearch(ctx context.Context, search string, first *int, after *string) (*model.StarshipConnection, error) VehiclesSearch(ctx context.Context, search string, first *int, after *string) (*model.VehicleConnection, error) SpeciesSearch(ctx context.Context, search string, first *int, after *string) (*model.SpecieConnection, error) PlanetsSearch(ctx context.Context, search string, first *int, after *string) (*model.PlanetConnection, error) }
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
}
Click to show internal directories.
Click to hide internal directories.