Documentation
¶
Index ¶
- func FromDeviceMakerModel(m *models.DeviceMaker) *gqlmodels.DeviceMaker
- func FromDeviceMakerModelList(list []*models.DeviceMaker) []*gqlmodels.DeviceMaker
- type DeviceMakerConnection
- type QueryResolver
- func (r *QueryResolver) Create(ctx context.Context, input qmodels.DeviceMakerCreateInput) (*qmodels.DeviceMakerPayload, error)
- func (r *QueryResolver) Delete(ctx context.Context, id uint64, msg *string) (*qmodels.DeviceMakerPayload, error)
- func (r *QueryResolver) Get(ctx context.Context, id uint64) (*qmodels.DeviceMakerPayload, error)
- func (r *QueryResolver) List(ctx context.Context, filter *qmodels.DeviceMakerListFilter, ...) (*connectors.DeviceMakerConnection, error)
- func (r *QueryResolver) Update(ctx context.Context, id uint64, input qmodels.DeviceMakerUpdateInput) (*qmodels.DeviceMakerPayload, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromDeviceMakerModel ¶ added in v0.2.0
func FromDeviceMakerModel(m *models.DeviceMaker) *gqlmodels.DeviceMaker
func FromDeviceMakerModelList ¶ added in v0.2.0
func FromDeviceMakerModelList(list []*models.DeviceMaker) []*gqlmodels.DeviceMaker
Types ¶
type DeviceMakerConnection ¶ added in v0.2.0
type DeviceMakerConnection = connectors.CollectionConnection[*gqlmodels.DeviceMaker]
DeviceMakerConnection implements collection accessor interface with pagination.
func NewDeviceMakerConnection ¶ added in v0.2.0
func NewDeviceMakerConnection( ctx context.Context, deviceMakerAccessor devicemaker.Usecase, filter *gqlmodels.DeviceMakerListFilter, order []*gqlmodels.DeviceMakerListOrder, page *models.Page, ) *DeviceMakerConnection
NewDeviceMakerConnection based on query object
type QueryResolver ¶
type QueryResolver struct {
// contains filtered or unexported fields
}
func NewQueryResolver ¶
func NewQueryResolver() *QueryResolver
func (*QueryResolver) Create ¶
func (r *QueryResolver) Create(ctx context.Context, input qmodels.DeviceMakerCreateInput) (*qmodels.DeviceMakerPayload, error)
Create DeviceMaker is the resolver for the createDeviceMaker field.
func (*QueryResolver) Delete ¶
func (r *QueryResolver) Delete(ctx context.Context, id uint64, msg *string) (*qmodels.DeviceMakerPayload, error)
Delete DeviceMaker is the resolver for the deleteDeviceMaker field.
func (*QueryResolver) Get ¶
func (r *QueryResolver) Get(ctx context.Context, id uint64) (*qmodels.DeviceMakerPayload, error)
Get DeviceMaker is the resolver for the DeviceMaker field.
func (*QueryResolver) List ¶
func (r *QueryResolver) List(ctx context.Context, filter *qmodels.DeviceMakerListFilter, order []*qmodels.DeviceMakerListOrder, page *qmodels.Page) (*connectors.DeviceMakerConnection, error)
List DeviceMakers is the resolver for the listDeviceMakers field.
func (*QueryResolver) Update ¶
func (r *QueryResolver) Update(ctx context.Context, id uint64, input qmodels.DeviceMakerUpdateInput) (*qmodels.DeviceMakerPayload, error)
Update DeviceMaker is the resolver for the updateDeviceMaker field.
Click to show internal directories.
Click to hide internal directories.