Documentation ¶
Index ¶
- type QueryResolver
- func (r *QueryResolver) Get(ctx context.Context, name string, otype models.OptionType, targetID uint64) (*models.OptionPayload, error)
- func (r *QueryResolver) List(ctx context.Context, filter *models.OptionListFilter, ...) (*connectors.OptionConnection, error)
- func (r *QueryResolver) Set(ctx context.Context, name string, input *models.OptionInput) (*models.OptionPayload, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryResolver ¶
type QueryResolver struct {
// contains filtered or unexported fields
}
QueryResolver implements GQL API methods
func NewQueryResolver ¶
func NewQueryResolver() *QueryResolver
NewQueryResolver returns new API resolver
func (*QueryResolver) Get ¶
func (r *QueryResolver) Get(ctx context.Context, name string, otype models.OptionType, targetID uint64) (*models.OptionPayload, error)
Get Option is the resolver for the option field.
func (*QueryResolver) List ¶
func (r *QueryResolver) List(ctx context.Context, filter *models.OptionListFilter, order *models.OptionListOrder, page *models.Page) (*connectors.OptionConnection, error)
List Options is the resolver for the listOptions field.
func (*QueryResolver) Set ¶
func (r *QueryResolver) Set(ctx context.Context, name string, input *models.OptionInput) (*models.OptionPayload, error)
Set Option is the resolver for the setOption field.
Click to show internal directories.
Click to hide internal directories.