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 AuditLogResolver ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Address struct { Addition func(childComplexity int) int Business func(childComplexity int) int City func(childComplexity int) int Comment func(childComplexity int) int Country func(childComplexity int) int CreatedAt func(childComplexity int) int DeletedAt func(childComplexity int) int ID func(childComplexity int) int Locale func(childComplexity int) int Primary func(childComplexity int) int State func(childComplexity int) int Street func(childComplexity int) int Telephone func(childComplexity int) int Timetables func(childComplexity int) int UpdatedAt func(childComplexity int) int Zip func(childComplexity int) int } AddressConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } AddressEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } AuditLog struct { Action func(childComplexity int) int EntitySchema func(childComplexity int) int EntityUUID func(childComplexity int) int EntityValues func(childComplexity int) int ID func(childComplexity int) int Timestamp func(childComplexity int) int User func(childComplexity int) int } Business struct { Active func(childComplexity int) int Addresses func(childComplexity int) int Alias func(childComplexity int) int Comment func(childComplexity int) int CreatedAt func(childComplexity int) int DeletedAt func(childComplexity int) int Email func(childComplexity int) int ID func(childComplexity int) int Name1 func(childComplexity int) int Name2 func(childComplexity int) int Operators func(childComplexity int) int Tags func(childComplexity int) int Telephone func(childComplexity int) int UpdatedAt func(childComplexity int) int Users func(childComplexity int) int Website func(childComplexity int) int } BusinessConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } BusinessEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } Content struct { Content func(childComplexity int) int CreatedAt func(childComplexity int) int DeletedAt func(childComplexity int) int ID func(childComplexity int) int Locale func(childComplexity int) int Location func(childComplexity int) int PublishedAt func(childComplexity int) int Status func(childComplexity int) int TimetableType func(childComplexity int) int Type func(childComplexity int) int UpdatedAt func(childComplexity int) int } Mutation struct { CreateBusiness func(childComplexity int, input ent.CreateBusinessInput) int CreateTimetable func(childComplexity int, input ent.CreateTimetableInput) int UpdateTimetable func(childComplexity int, id uuid.UUID, input ent.UpdateTimetableInput) int } Operator struct { Businesses func(childComplexity int) int Firstname func(childComplexity int) int ID func(childComplexity int) int Surname func(childComplexity int) int Timetable func(childComplexity int) int Title func(childComplexity int) int } PageInfo struct { EndCursor func(childComplexity int) int HasNextPage func(childComplexity int) int HasPreviousPage func(childComplexity int) int StartCursor func(childComplexity int) int } Query struct { Addresses func(childComplexity int, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, where *ent.AddressWhereInput) int Businesses func(childComplexity int, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, orderBy []*ent.BusinessOrder, where *ent.BusinessWhereInput) int Node func(childComplexity int, id uuid.UUID) int Nodes func(childComplexity int, ids []uuid.UUID) int Timetables func(childComplexity int, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, orderBy []*ent.TimetableOrder, where *ent.TimetableWhereInput) int } Tag struct { Business func(childComplexity int) int Comment func(childComplexity int) int CreatedAt func(childComplexity int) int DeletedAt func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int UpdatedAt func(childComplexity int) int User func(childComplexity int) int } Timetable struct { Address func(childComplexity int) int AvailabilityByEmail func(childComplexity int) int AvailabilityByPhone func(childComplexity int) int AvailabilityBySms func(childComplexity int) int AvailabilityByWhatsapp func(childComplexity int) int Comment func(childComplexity int) int CreatedAt func(childComplexity int) int DatetimeFrom func(childComplexity int) int DatetimeTo func(childComplexity int) int DeletedAt func(childComplexity int) int Duration func(childComplexity int) int ID func(childComplexity int) int OperatorsOnDuty func(childComplexity int) int TimeWholeDay func(childComplexity int) int TimetableType func(childComplexity int) int UpdatedAt func(childComplexity int) int } TimetableConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } TimetableEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } User struct { Active func(childComplexity int) int Businesses func(childComplexity int) int Comment func(childComplexity int) int CreatedAt func(childComplexity int) int DeletedAt func(childComplexity int) int Email func(childComplexity int) int Firstname func(childComplexity int) int ID func(childComplexity int) int Surname func(childComplexity int) int Tags func(childComplexity int) int Title func(childComplexity int) int UpdatedAt 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 { CreateBusiness(ctx context.Context, input ent.CreateBusinessInput) (*ent.Business, error) CreateTimetable(ctx context.Context, input ent.CreateTimetableInput) (*ent.Timetable, error) UpdateTimetable(ctx context.Context, id uuid.UUID, input ent.UpdateTimetableInput) (*ent.Timetable, error) }
type QueryResolver ¶
type QueryResolver interface { Node(ctx context.Context, id uuid.UUID) (ent.Noder, error) Nodes(ctx context.Context, ids []uuid.UUID) ([]ent.Noder, error) Addresses(ctx context.Context, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, where *ent.AddressWhereInput) (*ent.AddressConnection, error) Businesses(ctx context.Context, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, orderBy []*ent.BusinessOrder, where *ent.BusinessWhereInput) (*ent.BusinessConnection, error) Timetables(ctx context.Context, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, orderBy []*ent.TimetableOrder, where *ent.TimetableWhereInput) (*ent.TimetableConnection, error) }
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver is the resolver root.
func (*Resolver) AuditLog ¶
func (r *Resolver) AuditLog() AuditLogResolver
AuditLog returns AuditLogResolver implementation.
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() MutationResolver
Mutation returns MutationResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface { AuditLog() AuditLogResolver Mutation() MutationResolver Query() QueryResolver }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.