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 { Facet struct { FacetType func(childComplexity int) int Title func(childComplexity int) int TotalCount func(childComplexity int) int Values func(childComplexity int) int } FacetValue struct { Count func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int } GetSimilarItemsResponse struct { ItemConnection func(childComplexity int) int SearchID func(childComplexity int) int } HomeComponent struct { ID func(childComplexity int) int Payload func(childComplexity int) int } HomeComponentPayloadCategories struct { Categories func(childComplexity int) int Title func(childComplexity int) int } HomeComponentPayloadItemGroups struct { Payload func(childComplexity int) int Title func(childComplexity int) int } HomeComponentPayloadItems struct { Items func(childComplexity int) int Title func(childComplexity int) int } HomeComponentPayloadMediaPosts struct { Posts func(childComplexity int) int Title func(childComplexity int) int } HomeResponse struct { Components func(childComplexity int) int } Item struct { AffiliateURL func(childComplexity int) int AverageRating func(childComplexity int) int CategoryID func(childComplexity int) int Colors func(childComplexity int) int Description func(childComplexity int) int GroupID func(childComplexity int) int ID func(childComplexity int) int ImageUrls func(childComplexity int) int Name func(childComplexity int) int Platform func(childComplexity int) int Price func(childComplexity int) int ReviewCount func(childComplexity int) int SameGroupItems func(childComplexity int) int Status func(childComplexity int) int URL func(childComplexity int) int } ItemCategory struct { Children func(childComplexity int) int ID func(childComplexity int) int ImageURL func(childComplexity int) int Level func(childComplexity int) int Name func(childComplexity int) int Parent func(childComplexity int) int ParentID func(childComplexity int) int } ItemConnection struct { Nodes func(childComplexity int) int PageInfo func(childComplexity int) int } MediaPost struct { Categories func(childComplexity int) int Description func(childComplexity int) int MainImageURL func(childComplexity int) int PublishedAt func(childComplexity int) int Slug func(childComplexity int) int Title func(childComplexity int) int } MediaPostCategory struct { ID func(childComplexity int) int Names func(childComplexity int) int } Mutation struct { TrackEvent func(childComplexity int, event gqlmodel.Event) int } PageInfo struct { Page func(childComplexity int) int TotalCount func(childComplexity int) int TotalPage func(childComplexity int) int } Query struct { GetAllItemCategories func(childComplexity int) int GetItem func(childComplexity int, id string) int GetQuerySuggestions func(childComplexity int, query string) int GetSimilarItems func(childComplexity int, input gqlmodel.GetSimilarItemsInput) int Home func(childComplexity int) int Search func(childComplexity int, input gqlmodel.SearchInput) int } QuerySuggestionsResponse struct { Query func(childComplexity int) int SuggestedQueries func(childComplexity int) int } SearchResponse struct { Facets func(childComplexity int) int ItemConnection func(childComplexity int) int SearchID func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type QueryResolver ¶
type QueryResolver interface { Home(ctx context.Context) (*gqlmodel.HomeResponse, error) Search(ctx context.Context, input gqlmodel.SearchInput) (*gqlmodel.SearchResponse, error) GetSimilarItems(ctx context.Context, input gqlmodel.GetSimilarItemsInput) (*gqlmodel.GetSimilarItemsResponse, error) GetQuerySuggestions(ctx context.Context, query string) (*gqlmodel.QuerySuggestionsResponse, error) GetItem(ctx context.Context, id string) (*gqlmodel.Item, error) GetAllItemCategories(ctx context.Context) ([]*gqlmodel.ItemCategory, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.