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 { CreateFollowingTeacherPayload struct { ID func(childComplexity int) int TeacherID func(childComplexity int) int } DeleteFollowingTeachersPayload struct { TeacherIds func(childComplexity int) int } Empty struct { ID func(childComplexity int) int } FollowingTeacher struct { CreatedAt func(childComplexity int) int ID func(childComplexity int) int Teacher func(childComplexity int) int } FollowingTeacherConnection struct { Edges func(childComplexity int) int Nodes func(childComplexity int) int PageInfo func(childComplexity int) int } FollowingTeacherEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } Mutation struct { CreateEmpty func(childComplexity int) int CreateFollowingTeacher func(childComplexity int, input model.CreateFollowingTeacherInput) int DeleteFollowingTeachers func(childComplexity int, input model.DeleteFollowingTeachersInput) int UpdateNotificationTimeSpans func(childComplexity int, input model.UpdateNotificationTimeSpansInput) int UpdateViewer func(childComplexity int, input model.UpdateViewerInput) int } NotificationTimeSpan struct { FromHour func(childComplexity int) int FromMinute func(childComplexity int) int ToHour func(childComplexity int) int ToMinute func(childComplexity int) int } NotificationTimeSpanPayload struct { TimeSpans func(childComplexity int) int } PageInfo struct { HasNextPage func(childComplexity int) int HasPreviousPage func(childComplexity int) int } Query struct { Empty func(childComplexity int) int FollowingTeachers func(childComplexity int) int Viewer func(childComplexity int) int } Teacher struct { ID func(childComplexity int) int Name func(childComplexity int) int } User struct { Email func(childComplexity int) int FollowingTeachers func(childComplexity int, first *int, after *string, last *int, before *string) int ID func(childComplexity int) int NotificationTimeSpans func(childComplexity int) int ShowTutorial func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { CreateEmpty(ctx context.Context) (*model.Empty, error) CreateFollowingTeacher(ctx context.Context, input model.CreateFollowingTeacherInput) (*model.CreateFollowingTeacherPayload, error) DeleteFollowingTeachers(ctx context.Context, input model.DeleteFollowingTeachersInput) (*model.DeleteFollowingTeachersPayload, error) UpdateNotificationTimeSpans(ctx context.Context, input model.UpdateNotificationTimeSpansInput) (*model.NotificationTimeSpanPayload, error) UpdateViewer(ctx context.Context, input model.UpdateViewerInput) (*model.User, error) }
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver User() UserResolver }
type UserResolver ¶
Click to show internal directories.
Click to hide internal directories.