schema

package
v0.0.0-...-faaa4ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaResolver

type MetaResolver struct {
	PageField         *int32
	LimitField        *int32
	TotalRecordsField *int32
	TotalPagesField   *int32
}

MetaResolver struct

func (*MetaResolver) Limit

func (p *MetaResolver) Limit() *int32

Limit function

func (*MetaResolver) Page

func (p *MetaResolver) Page() *int32

Page function

func (*MetaResolver) TotalPages

func (p *MetaResolver) TotalPages() *int32

TotalPages function

func (*MetaResolver) TotalRecords

func (p *MetaResolver) TotalRecords() *int32

TotalRecords function

type ProductListResolver

type ProductListResolver struct {
	ProductsField []*ProductSchema
	MetaField     *MetaResolver
}

ProductListResolver struct

func (*ProductListResolver) Meta

func (p *ProductListResolver) Meta() *MetaResolver

Meta function

func (*ProductListResolver) Products

func (p *ProductListResolver) Products() []*ProductSchema

Products function

type ProductSchema

type ProductSchema struct {
	Product *domain.Product
}

ProductSchema resolver

func (*ProductSchema) Category

Category function

func (*ProductSchema) Created

func (p *ProductSchema) Created() *graphql.Time

Created function

func (*ProductSchema) CreatorID

func (p *ProductSchema) CreatorID() string

CreatorID function

func (*ProductSchema) CreatorIP

func (p *ProductSchema) CreatorIP() string

CreatorIP function

func (*ProductSchema) Deleted

func (p *ProductSchema) Deleted() *graphql.Time

Deleted function

func (*ProductSchema) EditorID

func (p *ProductSchema) EditorID() string

EditorID function

func (*ProductSchema) EditorIP

func (p *ProductSchema) EditorIP() string

EditorIP function

func (*ProductSchema) ID

func (p *ProductSchema) ID() graphql.ID

ID function

func (*ProductSchema) IsDeleted

func (p *ProductSchema) IsDeleted() *bool

IsDeleted function

func (*ProductSchema) LastModified

func (p *ProductSchema) LastModified() *graphql.Time

LastModified function

func (*ProductSchema) Name

func (p *ProductSchema) Name() string

Name function

func (*ProductSchema) Quantity

func (p *ProductSchema) Quantity() int32

Quantity function

type ProductSchemaInput

type ProductSchemaInput struct {
	ID           string
	Name         string
	Quantity     int32
	Category     string
	CreatorID    *string
	CreatorIP    *string
	Created      *time.Time
	EditorID     *string
	EditorIP     *string
	LastModified *time.Time
	IsDeleted    *bool
	Deleted      *time.Time
}

ProductSchemaInput struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL