gen

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyPrincipalID         key    = iota
	KeyLoaders             key    = iota
	KeyExecutableSchema    key    = iota
	KeyJWTClaims           key    = iota
	KeyHTTPRequest         key    = iota
	KeyMutationTransaction key    = iota
	KeyMutationEvents      key    = iota
	SchemaSDL              string = `` /* 17111-byte string literal not displayed */

)
View Source
const (
	// ORMChangeEvent ...
	ORMChangeEvent = "com.graphql.orm.change"
)

Variables

Functions

func AddMutationEvent

func AddMutationEvent(ctx context.Context, e events.Event)

AddMutationEvent ...

func ApplyChanges

func ApplyChanges(changes map[string]interface{}, to interface{}) error

ApplyChanges used to convert map[string]interface{} to EntityChanges struct

func AutoMigrate

func AutoMigrate(db *gorm.DB) (err error)

AutoMigrate ...

func DeleteAllChangelogChangesHandler

func DeleteAllChangelogChangesHandler(ctx context.Context, r *GeneratedResolver) (bool, error)

DeleteAllChangelogChangesHandler ...

func DeleteAllChangelogsHandler

func DeleteAllChangelogsHandler(ctx context.Context, r *GeneratedResolver) (bool, error)

DeleteAllChangelogsHandler ...

func EnrichContextWithMutations

func EnrichContextWithMutations(ctx context.Context, r *GeneratedResolver) context.Context

EnrichContextWithMutations ...

func FinishMutationContext

func FinishMutationContext(ctx context.Context, r *GeneratedResolver) (err error)

FinishMutationContext ...

func GetHTTPRequestFromContext

func GetHTTPRequestFromContext(ctx context.Context) *http.Request

GetHTTPRequestFromContext ...

func GetHTTPServeMux

func GetHTTPServeMux(r ResolverRoot, db *DB, migrations []*gormigrate.Migration) *http.ServeMux

GetHTTPServeMux ...

func GetItem

func GetItem(ctx context.Context, db *gorm.DB, out interface{}, id *string) error

GetItem ...

func GetItemForRelation

func GetItemForRelation(ctx context.Context, db *gorm.DB, obj interface{}, relation string, out interface{}) error

GetItemForRelation ...

func GetLoaders

func GetLoaders(db *DB) map[string]*dataloader.Loader

GetLoaders ...

func GetPrincipalIDFromContext

func GetPrincipalIDFromContext(ctx context.Context) *string

GetPrincipalIDFromContext ...

func Marshal_Any

func Marshal_Any(v interface{}) graphql.Marshaler

Marshal_Any ...

func Migrate

func Migrate(db *gorm.DB, options *gormigrate.Options, migrations []*gormigrate.Migration) error

Migrate ...

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

func RollbackMutationContext

func RollbackMutationContext(ctx context.Context, r *GeneratedResolver) error

RollbackMutationContext ...

func TableName

func TableName(name string) string

TableName ...

func Unmarshal_Any

func Unmarshal_Any(v interface{}) (interface{}, error)

Unmarshal_Any ...

Types

type Changelog

type Changelog struct {
	ID          string        `json:"id" gorm:"column:id;primary_key"`
	Entity      string        `json:"entity" gorm:"column:entity;index:entity_search"`
	EntityID    string        `json:"entityID" gorm:"column:entityID;index:entity_search"`
	PrincipalID *string       `json:"principalID" gorm:"column:principalID"`
	Type        ChangelogType `json:"type" gorm:"column:type"`
	Date        time.Time     `json:"date" gorm:"column:date"`
	UpdatedAt   *time.Time    `json:"updatedAt" gorm:"column:updatedAt"`
	CreatedAt   time.Time     `json:"createdAt" gorm:"column:createdAt"`
	UpdatedBy   *string       `json:"updatedBy" gorm:"column:updatedBy"`
	CreatedBy   *string       `json:"createdBy" gorm:"column:createdBy"`

	Changes          []*ChangelogChange `json:"changes" gorm:"foreignkey:LogID"`
	ChangesPreloaded bool               `gorm:"-"`
}

Changelog ...

func ChangelogChangeLogHandler

func ChangelogChangeLogHandler(ctx context.Context, r *GeneratedResolver, obj *ChangelogChange) (res *Changelog, err error)

LogHandler ...

func CreateChangelogHandler

func CreateChangelogHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *Changelog, err error)

CreateChangelogHandler ...

func DeleteChangelogHandler

func DeleteChangelogHandler(ctx context.Context, r *GeneratedResolver, id string) (item *Changelog, err error)

DeleteChangelogHandler ...

func QueryChangelogHandler

func QueryChangelogHandler(ctx context.Context, r *GeneratedResolver, opts QueryChangelogHandlerOptions) (*Changelog, error)

QueryChangelogHandler ...

func UpdateChangelogHandler

func UpdateChangelogHandler(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *Changelog, err error)

UpdateChangelogHandler ...

func (*Changelog) Is_Entity

func (m *Changelog) Is_Entity()

Is_Entity ...

type ChangelogChange

type ChangelogChange struct {
	ID        string     `json:"id" gorm:"column:id;primary_key"`
	Column    string     `json:"column" gorm:"column:column"`
	OldValue  *string    `json:"oldValue" gorm:"column:oldValue;type:text"`
	NewValue  *string    `json:"newValue" gorm:"column:newValue;type:text"`
	LogID     *string    `json:"logId" gorm:"column:logId"`
	UpdatedAt *time.Time `json:"updatedAt" gorm:"column:updatedAt"`
	CreatedAt time.Time  `json:"createdAt" gorm:"column:createdAt"`
	UpdatedBy *string    `json:"updatedBy" gorm:"column:updatedBy"`
	CreatedBy *string    `json:"createdBy" gorm:"column:createdBy"`

	Log *Changelog `json:"log"`
}

ChangelogChange ...

func ChangelogChangesHandler

func ChangelogChangesHandler(ctx context.Context, r *GeneratedResolver, obj *Changelog) (res []*ChangelogChange, err error)

ChangesHandler ...

func CreateChangelogChangeHandler

func CreateChangelogChangeHandler(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ChangelogChange, err error)

CreateChangelogChangeHandler ...

func DeleteChangelogChangeHandler

func DeleteChangelogChangeHandler(ctx context.Context, r *GeneratedResolver, id string) (item *ChangelogChange, err error)

DeleteChangelogChangeHandler ...

func QueryChangelogChangeHandler

func QueryChangelogChangeHandler(ctx context.Context, r *GeneratedResolver, opts QueryChangelogChangeHandlerOptions) (*ChangelogChange, error)

QueryChangelogChangeHandler ...

func UpdateChangelogChangeHandler

func UpdateChangelogChangeHandler(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *ChangelogChange, err error)

UpdateChangelogChangeHandler ...

func (*ChangelogChange) Is_Entity

func (m *ChangelogChange) Is_Entity()

Is_Entity ...

type ChangelogChangeChanges

type ChangelogChangeChanges struct {
	ID        string
	Column    string
	OldValue  *string
	NewValue  *string
	LogID     *string
	UpdatedAt *time.Time
	CreatedAt time.Time
	UpdatedBy *string
	CreatedBy *string
}

ChangelogChangeChanges ...

type ChangelogChangeFilterType

type ChangelogChangeFilterType struct {
	And               []*ChangelogChangeFilterType `json:"AND"`
	Or                []*ChangelogChangeFilterType `json:"OR"`
	ID                *string                      `json:"id"`
	IDMin             *string                      `json:"idMin"`
	IDMax             *string                      `json:"idMax"`
	IDNe              *string                      `json:"id_ne"`
	IDMinNe           *string                      `json:"idMin_ne"`
	IDMaxNe           *string                      `json:"idMax_ne"`
	IDGt              *string                      `json:"id_gt"`
	IDMinGt           *string                      `json:"idMin_gt"`
	IDMaxGt           *string                      `json:"idMax_gt"`
	IDLt              *string                      `json:"id_lt"`
	IDMinLt           *string                      `json:"idMin_lt"`
	IDMaxLt           *string                      `json:"idMax_lt"`
	IDGte             *string                      `json:"id_gte"`
	IDMinGte          *string                      `json:"idMin_gte"`
	IDMaxGte          *string                      `json:"idMax_gte"`
	IDLte             *string                      `json:"id_lte"`
	IDMinLte          *string                      `json:"idMin_lte"`
	IDMaxLte          *string                      `json:"idMax_lte"`
	IDIn              []string                     `json:"id_in"`
	IDMinIn           []string                     `json:"idMin_in"`
	IDMaxIn           []string                     `json:"idMax_in"`
	IDNotIn           []string                     `json:"id_not_in"`
	IDMinNotIn        []string                     `json:"idMin_not_in"`
	IDMaxNotIn        []string                     `json:"idMax_not_in"`
	IDNull            *bool                        `json:"id_null"`
	Column            *string                      `json:"column"`
	ColumnMin         *string                      `json:"columnMin"`
	ColumnMax         *string                      `json:"columnMax"`
	ColumnNe          *string                      `json:"column_ne"`
	ColumnMinNe       *string                      `json:"columnMin_ne"`
	ColumnMaxNe       *string                      `json:"columnMax_ne"`
	ColumnGt          *string                      `json:"column_gt"`
	ColumnMinGt       *string                      `json:"columnMin_gt"`
	ColumnMaxGt       *string                      `json:"columnMax_gt"`
	ColumnLt          *string                      `json:"column_lt"`
	ColumnMinLt       *string                      `json:"columnMin_lt"`
	ColumnMaxLt       *string                      `json:"columnMax_lt"`
	ColumnGte         *string                      `json:"column_gte"`
	ColumnMinGte      *string                      `json:"columnMin_gte"`
	ColumnMaxGte      *string                      `json:"columnMax_gte"`
	ColumnLte         *string                      `json:"column_lte"`
	ColumnMinLte      *string                      `json:"columnMin_lte"`
	ColumnMaxLte      *string                      `json:"columnMax_lte"`
	ColumnIn          []string                     `json:"column_in"`
	ColumnMinIn       []string                     `json:"columnMin_in"`
	ColumnMaxIn       []string                     `json:"columnMax_in"`
	ColumnNotIn       []string                     `json:"column_not_in"`
	ColumnMinNotIn    []string                     `json:"columnMin_not_in"`
	ColumnMaxNotIn    []string                     `json:"columnMax_not_in"`
	ColumnLike        *string                      `json:"column_like"`
	ColumnMinLike     *string                      `json:"columnMin_like"`
	ColumnMaxLike     *string                      `json:"columnMax_like"`
	ColumnPrefix      *string                      `json:"column_prefix"`
	ColumnMinPrefix   *string                      `json:"columnMin_prefix"`
	ColumnMaxPrefix   *string                      `json:"columnMax_prefix"`
	ColumnSuffix      *string                      `json:"column_suffix"`
	ColumnMinSuffix   *string                      `json:"columnMin_suffix"`
	ColumnMaxSuffix   *string                      `json:"columnMax_suffix"`
	ColumnNull        *bool                        `json:"column_null"`
	OldValue          *string                      `json:"oldValue"`
	OldValueMin       *string                      `json:"oldValueMin"`
	OldValueMax       *string                      `json:"oldValueMax"`
	OldValueNe        *string                      `json:"oldValue_ne"`
	OldValueMinNe     *string                      `json:"oldValueMin_ne"`
	OldValueMaxNe     *string                      `json:"oldValueMax_ne"`
	OldValueGt        *string                      `json:"oldValue_gt"`
	OldValueMinGt     *string                      `json:"oldValueMin_gt"`
	OldValueMaxGt     *string                      `json:"oldValueMax_gt"`
	OldValueLt        *string                      `json:"oldValue_lt"`
	OldValueMinLt     *string                      `json:"oldValueMin_lt"`
	OldValueMaxLt     *string                      `json:"oldValueMax_lt"`
	OldValueGte       *string                      `json:"oldValue_gte"`
	OldValueMinGte    *string                      `json:"oldValueMin_gte"`
	OldValueMaxGte    *string                      `json:"oldValueMax_gte"`
	OldValueLte       *string                      `json:"oldValue_lte"`
	OldValueMinLte    *string                      `json:"oldValueMin_lte"`
	OldValueMaxLte    *string                      `json:"oldValueMax_lte"`
	OldValueIn        []string                     `json:"oldValue_in"`
	OldValueMinIn     []string                     `json:"oldValueMin_in"`
	OldValueMaxIn     []string                     `json:"oldValueMax_in"`
	OldValueNotIn     []string                     `json:"oldValue_not_in"`
	OldValueMinNotIn  []string                     `json:"oldValueMin_not_in"`
	OldValueMaxNotIn  []string                     `json:"oldValueMax_not_in"`
	OldValueLike      *string                      `json:"oldValue_like"`
	OldValueMinLike   *string                      `json:"oldValueMin_like"`
	OldValueMaxLike   *string                      `json:"oldValueMax_like"`
	OldValuePrefix    *string                      `json:"oldValue_prefix"`
	OldValueMinPrefix *string                      `json:"oldValueMin_prefix"`
	OldValueMaxPrefix *string                      `json:"oldValueMax_prefix"`
	OldValueSuffix    *string                      `json:"oldValue_suffix"`
	OldValueMinSuffix *string                      `json:"oldValueMin_suffix"`
	OldValueMaxSuffix *string                      `json:"oldValueMax_suffix"`
	OldValueNull      *bool                        `json:"oldValue_null"`
	NewValue          *string                      `json:"newValue"`
	NewValueMin       *string                      `json:"newValueMin"`
	NewValueMax       *string                      `json:"newValueMax"`
	NewValueNe        *string                      `json:"newValue_ne"`
	NewValueMinNe     *string                      `json:"newValueMin_ne"`
	NewValueMaxNe     *string                      `json:"newValueMax_ne"`
	NewValueGt        *string                      `json:"newValue_gt"`
	NewValueMinGt     *string                      `json:"newValueMin_gt"`
	NewValueMaxGt     *string                      `json:"newValueMax_gt"`
	NewValueLt        *string                      `json:"newValue_lt"`
	NewValueMinLt     *string                      `json:"newValueMin_lt"`
	NewValueMaxLt     *string                      `json:"newValueMax_lt"`
	NewValueGte       *string                      `json:"newValue_gte"`
	NewValueMinGte    *string                      `json:"newValueMin_gte"`
	NewValueMaxGte    *string                      `json:"newValueMax_gte"`
	NewValueLte       *string                      `json:"newValue_lte"`
	NewValueMinLte    *string                      `json:"newValueMin_lte"`
	NewValueMaxLte    *string                      `json:"newValueMax_lte"`
	NewValueIn        []string                     `json:"newValue_in"`
	NewValueMinIn     []string                     `json:"newValueMin_in"`
	NewValueMaxIn     []string                     `json:"newValueMax_in"`
	NewValueNotIn     []string                     `json:"newValue_not_in"`
	NewValueMinNotIn  []string                     `json:"newValueMin_not_in"`
	NewValueMaxNotIn  []string                     `json:"newValueMax_not_in"`
	NewValueLike      *string                      `json:"newValue_like"`
	NewValueMinLike   *string                      `json:"newValueMin_like"`
	NewValueMaxLike   *string                      `json:"newValueMax_like"`
	NewValuePrefix    *string                      `json:"newValue_prefix"`
	NewValueMinPrefix *string                      `json:"newValueMin_prefix"`
	NewValueMaxPrefix *string                      `json:"newValueMax_prefix"`
	NewValueSuffix    *string                      `json:"newValue_suffix"`
	NewValueMinSuffix *string                      `json:"newValueMin_suffix"`
	NewValueMaxSuffix *string                      `json:"newValueMax_suffix"`
	NewValueNull      *bool                        `json:"newValue_null"`
	LogID             *string                      `json:"logId"`
	LogIDMin          *string                      `json:"logIdMin"`
	LogIDMax          *string                      `json:"logIdMax"`
	LogIDNe           *string                      `json:"logId_ne"`
	LogIDMinNe        *string                      `json:"logIdMin_ne"`
	LogIDMaxNe        *string                      `json:"logIdMax_ne"`
	LogIDGt           *string                      `json:"logId_gt"`
	LogIDMinGt        *string                      `json:"logIdMin_gt"`
	LogIDMaxGt        *string                      `json:"logIdMax_gt"`
	LogIDLt           *string                      `json:"logId_lt"`
	LogIDMinLt        *string                      `json:"logIdMin_lt"`
	LogIDMaxLt        *string                      `json:"logIdMax_lt"`
	LogIDGte          *string                      `json:"logId_gte"`
	LogIDMinGte       *string                      `json:"logIdMin_gte"`
	LogIDMaxGte       *string                      `json:"logIdMax_gte"`
	LogIDLte          *string                      `json:"logId_lte"`
	LogIDMinLte       *string                      `json:"logIdMin_lte"`
	LogIDMaxLte       *string                      `json:"logIdMax_lte"`
	LogIDIn           []string                     `json:"logId_in"`
	LogIDMinIn        []string                     `json:"logIdMin_in"`
	LogIDMaxIn        []string                     `json:"logIdMax_in"`
	LogIDNotIn        []string                     `json:"logId_not_in"`
	LogIDMinNotIn     []string                     `json:"logIdMin_not_in"`
	LogIDMaxNotIn     []string                     `json:"logIdMax_not_in"`
	LogIDNull         *bool                        `json:"logId_null"`
	UpdatedAt         *time.Time                   `json:"updatedAt"`
	UpdatedAtMin      *time.Time                   `json:"updatedAtMin"`
	UpdatedAtMax      *time.Time                   `json:"updatedAtMax"`
	UpdatedAtNe       *time.Time                   `json:"updatedAt_ne"`
	UpdatedAtMinNe    *time.Time                   `json:"updatedAtMin_ne"`
	UpdatedAtMaxNe    *time.Time                   `json:"updatedAtMax_ne"`
	UpdatedAtGt       *time.Time                   `json:"updatedAt_gt"`
	UpdatedAtMinGt    *time.Time                   `json:"updatedAtMin_gt"`
	UpdatedAtMaxGt    *time.Time                   `json:"updatedAtMax_gt"`
	UpdatedAtLt       *time.Time                   `json:"updatedAt_lt"`
	UpdatedAtMinLt    *time.Time                   `json:"updatedAtMin_lt"`
	UpdatedAtMaxLt    *time.Time                   `json:"updatedAtMax_lt"`
	UpdatedAtGte      *time.Time                   `json:"updatedAt_gte"`
	UpdatedAtMinGte   *time.Time                   `json:"updatedAtMin_gte"`
	UpdatedAtMaxGte   *time.Time                   `json:"updatedAtMax_gte"`
	UpdatedAtLte      *time.Time                   `json:"updatedAt_lte"`
	UpdatedAtMinLte   *time.Time                   `json:"updatedAtMin_lte"`
	UpdatedAtMaxLte   *time.Time                   `json:"updatedAtMax_lte"`
	UpdatedAtIn       []*time.Time                 `json:"updatedAt_in"`
	UpdatedAtMinIn    []*time.Time                 `json:"updatedAtMin_in"`
	UpdatedAtMaxIn    []*time.Time                 `json:"updatedAtMax_in"`
	UpdatedAtNotIn    []*time.Time                 `json:"updatedAt_not_in"`
	UpdatedAtMinNotIn []*time.Time                 `json:"updatedAtMin_not_in"`
	UpdatedAtMaxNotIn []*time.Time                 `json:"updatedAtMax_not_in"`
	UpdatedAtNull     *bool                        `json:"updatedAt_null"`
	CreatedAt         *time.Time                   `json:"createdAt"`
	CreatedAtMin      *time.Time                   `json:"createdAtMin"`
	CreatedAtMax      *time.Time                   `json:"createdAtMax"`
	CreatedAtNe       *time.Time                   `json:"createdAt_ne"`
	CreatedAtMinNe    *time.Time                   `json:"createdAtMin_ne"`
	CreatedAtMaxNe    *time.Time                   `json:"createdAtMax_ne"`
	CreatedAtGt       *time.Time                   `json:"createdAt_gt"`
	CreatedAtMinGt    *time.Time                   `json:"createdAtMin_gt"`
	CreatedAtMaxGt    *time.Time                   `json:"createdAtMax_gt"`
	CreatedAtLt       *time.Time                   `json:"createdAt_lt"`
	CreatedAtMinLt    *time.Time                   `json:"createdAtMin_lt"`
	CreatedAtMaxLt    *time.Time                   `json:"createdAtMax_lt"`
	CreatedAtGte      *time.Time                   `json:"createdAt_gte"`
	CreatedAtMinGte   *time.Time                   `json:"createdAtMin_gte"`
	CreatedAtMaxGte   *time.Time                   `json:"createdAtMax_gte"`
	CreatedAtLte      *time.Time                   `json:"createdAt_lte"`
	CreatedAtMinLte   *time.Time                   `json:"createdAtMin_lte"`
	CreatedAtMaxLte   *time.Time                   `json:"createdAtMax_lte"`
	CreatedAtIn       []*time.Time                 `json:"createdAt_in"`
	CreatedAtMinIn    []*time.Time                 `json:"createdAtMin_in"`
	CreatedAtMaxIn    []*time.Time                 `json:"createdAtMax_in"`
	CreatedAtNotIn    []*time.Time                 `json:"createdAt_not_in"`
	CreatedAtMinNotIn []*time.Time                 `json:"createdAtMin_not_in"`
	CreatedAtMaxNotIn []*time.Time                 `json:"createdAtMax_not_in"`
	CreatedAtNull     *bool                        `json:"createdAt_null"`
	UpdatedBy         *string                      `json:"updatedBy"`
	UpdatedByMin      *string                      `json:"updatedByMin"`
	UpdatedByMax      *string                      `json:"updatedByMax"`
	UpdatedByNe       *string                      `json:"updatedBy_ne"`
	UpdatedByMinNe    *string                      `json:"updatedByMin_ne"`
	UpdatedByMaxNe    *string                      `json:"updatedByMax_ne"`
	UpdatedByGt       *string                      `json:"updatedBy_gt"`
	UpdatedByMinGt    *string                      `json:"updatedByMin_gt"`
	UpdatedByMaxGt    *string                      `json:"updatedByMax_gt"`
	UpdatedByLt       *string                      `json:"updatedBy_lt"`
	UpdatedByMinLt    *string                      `json:"updatedByMin_lt"`
	UpdatedByMaxLt    *string                      `json:"updatedByMax_lt"`
	UpdatedByGte      *string                      `json:"updatedBy_gte"`
	UpdatedByMinGte   *string                      `json:"updatedByMin_gte"`
	UpdatedByMaxGte   *string                      `json:"updatedByMax_gte"`
	UpdatedByLte      *string                      `json:"updatedBy_lte"`
	UpdatedByMinLte   *string                      `json:"updatedByMin_lte"`
	UpdatedByMaxLte   *string                      `json:"updatedByMax_lte"`
	UpdatedByIn       []string                     `json:"updatedBy_in"`
	UpdatedByMinIn    []string                     `json:"updatedByMin_in"`
	UpdatedByMaxIn    []string                     `json:"updatedByMax_in"`
	UpdatedByNotIn    []string                     `json:"updatedBy_not_in"`
	UpdatedByMinNotIn []string                     `json:"updatedByMin_not_in"`
	UpdatedByMaxNotIn []string                     `json:"updatedByMax_not_in"`
	UpdatedByNull     *bool                        `json:"updatedBy_null"`
	CreatedBy         *string                      `json:"createdBy"`
	CreatedByMin      *string                      `json:"createdByMin"`
	CreatedByMax      *string                      `json:"createdByMax"`
	CreatedByNe       *string                      `json:"createdBy_ne"`
	CreatedByMinNe    *string                      `json:"createdByMin_ne"`
	CreatedByMaxNe    *string                      `json:"createdByMax_ne"`
	CreatedByGt       *string                      `json:"createdBy_gt"`
	CreatedByMinGt    *string                      `json:"createdByMin_gt"`
	CreatedByMaxGt    *string                      `json:"createdByMax_gt"`
	CreatedByLt       *string                      `json:"createdBy_lt"`
	CreatedByMinLt    *string                      `json:"createdByMin_lt"`
	CreatedByMaxLt    *string                      `json:"createdByMax_lt"`
	CreatedByGte      *string                      `json:"createdBy_gte"`
	CreatedByMinGte   *string                      `json:"createdByMin_gte"`
	CreatedByMaxGte   *string                      `json:"createdByMax_gte"`
	CreatedByLte      *string                      `json:"createdBy_lte"`
	CreatedByMinLte   *string                      `json:"createdByMin_lte"`
	CreatedByMaxLte   *string                      `json:"createdByMax_lte"`
	CreatedByIn       []string                     `json:"createdBy_in"`
	CreatedByMinIn    []string                     `json:"createdByMin_in"`
	CreatedByMaxIn    []string                     `json:"createdByMax_in"`
	CreatedByNotIn    []string                     `json:"createdBy_not_in"`
	CreatedByMinNotIn []string                     `json:"createdByMin_not_in"`
	CreatedByMaxNotIn []string                     `json:"createdByMax_not_in"`
	CreatedByNull     *bool                        `json:"createdBy_null"`
	Log               *ChangelogFilterType         `json:"log"`
}

func (*ChangelogChangeFilterType) AndWith

AndWith convenience method for combining two or more filters with AND statement

func (*ChangelogChangeFilterType) Apply

func (f *ChangelogChangeFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, whereValues *[]interface{}, havings *[]string, havingValues *[]interface{}, joins *[]string) error

Apply ...

func (*ChangelogChangeFilterType) ApplyWithAlias

func (f *ChangelogChangeFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, whereValues *[]interface{}, havings *[]string, havingValues *[]interface{}, joins *[]string) error

ApplyWithAlias ...

func (*ChangelogChangeFilterType) HavingContent

func (f *ChangelogChangeFilterType) HavingContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

HavingContent ...

func (*ChangelogChangeFilterType) IsEmpty

func (f *ChangelogChangeFilterType) IsEmpty(ctx context.Context, dialect gorm.Dialect) bool

IsEmpty ...

func (*ChangelogChangeFilterType) OrWith

OrWith convenience method for combining two or more filters with OR statement

func (*ChangelogChangeFilterType) WhereContent

func (f *ChangelogChangeFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

WhereContent ...

type ChangelogChangeQueryFilter

type ChangelogChangeQueryFilter struct {
	Query *string
}

ChangelogChangeQueryFilter ...

func (*ChangelogChangeQueryFilter) Apply

func (qf *ChangelogChangeQueryFilter) Apply(ctx context.Context, dialect gorm.Dialect, selectionSet *ast.SelectionSet, wheres *[]string, values *[]interface{}, joins *[]string) error

Apply ...

type ChangelogChangeResolver

type ChangelogChangeResolver interface {
	Log(ctx context.Context, obj *ChangelogChange) (*Changelog, error)
}

type ChangelogChangeResultAggregations

type ChangelogChangeResultAggregations struct {
	ColumnMin   string  `json:"columnMin"`
	ColumnMax   string  `json:"columnMax"`
	OldValueMin *string `json:"oldValueMin"`
	OldValueMax *string `json:"oldValueMax"`
	NewValueMin *string `json:"newValueMin"`
	NewValueMax *string `json:"newValueMax"`
}

type ChangelogChangeResultType

type ChangelogChangeResultType struct {
	EntityResultType
}

ChangelogChangeResultType ...

func QueryChangelogChangesHandler

QueryChangelogChangesHandler ...

type ChangelogChangeResultTypeResolver

type ChangelogChangeResultTypeResolver interface {
	Items(ctx context.Context, obj *ChangelogChangeResultType) ([]*ChangelogChange, error)
	Count(ctx context.Context, obj *ChangelogChangeResultType) (int, error)
	Aggregations(ctx context.Context, obj *ChangelogChangeResultType) (*ChangelogChangeResultAggregations, error)
}

type ChangelogChangeSortType

type ChangelogChangeSortType struct {
	ID           *ObjectSortType    `json:"id"`
	IDMin        *ObjectSortType    `json:"idMin"`
	IDMax        *ObjectSortType    `json:"idMax"`
	Column       *ObjectSortType    `json:"column"`
	ColumnMin    *ObjectSortType    `json:"columnMin"`
	ColumnMax    *ObjectSortType    `json:"columnMax"`
	OldValue     *ObjectSortType    `json:"oldValue"`
	OldValueMin  *ObjectSortType    `json:"oldValueMin"`
	OldValueMax  *ObjectSortType    `json:"oldValueMax"`
	NewValue     *ObjectSortType    `json:"newValue"`
	NewValueMin  *ObjectSortType    `json:"newValueMin"`
	NewValueMax  *ObjectSortType    `json:"newValueMax"`
	LogID        *ObjectSortType    `json:"logId"`
	LogIDMin     *ObjectSortType    `json:"logIdMin"`
	LogIDMax     *ObjectSortType    `json:"logIdMax"`
	UpdatedAt    *ObjectSortType    `json:"updatedAt"`
	UpdatedAtMin *ObjectSortType    `json:"updatedAtMin"`
	UpdatedAtMax *ObjectSortType    `json:"updatedAtMax"`
	CreatedAt    *ObjectSortType    `json:"createdAt"`
	CreatedAtMin *ObjectSortType    `json:"createdAtMin"`
	CreatedAtMax *ObjectSortType    `json:"createdAtMax"`
	UpdatedBy    *ObjectSortType    `json:"updatedBy"`
	UpdatedByMin *ObjectSortType    `json:"updatedByMin"`
	UpdatedByMax *ObjectSortType    `json:"updatedByMax"`
	CreatedBy    *ObjectSortType    `json:"createdBy"`
	CreatedByMin *ObjectSortType    `json:"createdByMin"`
	CreatedByMax *ObjectSortType    `json:"createdByMax"`
	Log          *ChangelogSortType `json:"log"`
}

func (ChangelogChangeSortType) Apply

func (s ChangelogChangeSortType) Apply(ctx context.Context, dialect gorm.Dialect, sorts *[]SortInfo, joins *[]string) error

Apply ...

func (ChangelogChangeSortType) ApplyWithAlias

func (s ChangelogChangeSortType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, sorts *[]SortInfo, joins *[]string) error

ApplyWithAlias ...

type ChangelogChanges

type ChangelogChanges struct {
	ID          string
	Entity      string
	EntityID    string
	PrincipalID *string
	Type        ChangelogType
	Date        time.Time
	UpdatedAt   *time.Time
	CreatedAt   time.Time
	UpdatedBy   *string
	CreatedBy   *string

	ChangesIDs []*string
}

ChangelogChanges ...

type ChangelogFilterType

type ChangelogFilterType struct {
	And                  []*ChangelogFilterType     `json:"AND"`
	Or                   []*ChangelogFilterType     `json:"OR"`
	ID                   *string                    `json:"id"`
	IDMin                *string                    `json:"idMin"`
	IDMax                *string                    `json:"idMax"`
	IDNe                 *string                    `json:"id_ne"`
	IDMinNe              *string                    `json:"idMin_ne"`
	IDMaxNe              *string                    `json:"idMax_ne"`
	IDGt                 *string                    `json:"id_gt"`
	IDMinGt              *string                    `json:"idMin_gt"`
	IDMaxGt              *string                    `json:"idMax_gt"`
	IDLt                 *string                    `json:"id_lt"`
	IDMinLt              *string                    `json:"idMin_lt"`
	IDMaxLt              *string                    `json:"idMax_lt"`
	IDGte                *string                    `json:"id_gte"`
	IDMinGte             *string                    `json:"idMin_gte"`
	IDMaxGte             *string                    `json:"idMax_gte"`
	IDLte                *string                    `json:"id_lte"`
	IDMinLte             *string                    `json:"idMin_lte"`
	IDMaxLte             *string                    `json:"idMax_lte"`
	IDIn                 []string                   `json:"id_in"`
	IDMinIn              []string                   `json:"idMin_in"`
	IDMaxIn              []string                   `json:"idMax_in"`
	IDNotIn              []string                   `json:"id_not_in"`
	IDMinNotIn           []string                   `json:"idMin_not_in"`
	IDMaxNotIn           []string                   `json:"idMax_not_in"`
	IDNull               *bool                      `json:"id_null"`
	Entity               *string                    `json:"entity"`
	EntityMin            *string                    `json:"entityMin"`
	EntityMax            *string                    `json:"entityMax"`
	EntityNe             *string                    `json:"entity_ne"`
	EntityMinNe          *string                    `json:"entityMin_ne"`
	EntityMaxNe          *string                    `json:"entityMax_ne"`
	EntityGt             *string                    `json:"entity_gt"`
	EntityMinGt          *string                    `json:"entityMin_gt"`
	EntityMaxGt          *string                    `json:"entityMax_gt"`
	EntityLt             *string                    `json:"entity_lt"`
	EntityMinLt          *string                    `json:"entityMin_lt"`
	EntityMaxLt          *string                    `json:"entityMax_lt"`
	EntityGte            *string                    `json:"entity_gte"`
	EntityMinGte         *string                    `json:"entityMin_gte"`
	EntityMaxGte         *string                    `json:"entityMax_gte"`
	EntityLte            *string                    `json:"entity_lte"`
	EntityMinLte         *string                    `json:"entityMin_lte"`
	EntityMaxLte         *string                    `json:"entityMax_lte"`
	EntityIn             []string                   `json:"entity_in"`
	EntityMinIn          []string                   `json:"entityMin_in"`
	EntityMaxIn          []string                   `json:"entityMax_in"`
	EntityNotIn          []string                   `json:"entity_not_in"`
	EntityMinNotIn       []string                   `json:"entityMin_not_in"`
	EntityMaxNotIn       []string                   `json:"entityMax_not_in"`
	EntityLike           *string                    `json:"entity_like"`
	EntityMinLike        *string                    `json:"entityMin_like"`
	EntityMaxLike        *string                    `json:"entityMax_like"`
	EntityPrefix         *string                    `json:"entity_prefix"`
	EntityMinPrefix      *string                    `json:"entityMin_prefix"`
	EntityMaxPrefix      *string                    `json:"entityMax_prefix"`
	EntitySuffix         *string                    `json:"entity_suffix"`
	EntityMinSuffix      *string                    `json:"entityMin_suffix"`
	EntityMaxSuffix      *string                    `json:"entityMax_suffix"`
	EntityNull           *bool                      `json:"entity_null"`
	EntityID             *string                    `json:"entityID"`
	EntityIDMin          *string                    `json:"entityIDMin"`
	EntityIDMax          *string                    `json:"entityIDMax"`
	EntityIDNe           *string                    `json:"entityID_ne"`
	EntityIDMinNe        *string                    `json:"entityIDMin_ne"`
	EntityIDMaxNe        *string                    `json:"entityIDMax_ne"`
	EntityIDGt           *string                    `json:"entityID_gt"`
	EntityIDMinGt        *string                    `json:"entityIDMin_gt"`
	EntityIDMaxGt        *string                    `json:"entityIDMax_gt"`
	EntityIDLt           *string                    `json:"entityID_lt"`
	EntityIDMinLt        *string                    `json:"entityIDMin_lt"`
	EntityIDMaxLt        *string                    `json:"entityIDMax_lt"`
	EntityIDGte          *string                    `json:"entityID_gte"`
	EntityIDMinGte       *string                    `json:"entityIDMin_gte"`
	EntityIDMaxGte       *string                    `json:"entityIDMax_gte"`
	EntityIDLte          *string                    `json:"entityID_lte"`
	EntityIDMinLte       *string                    `json:"entityIDMin_lte"`
	EntityIDMaxLte       *string                    `json:"entityIDMax_lte"`
	EntityIDIn           []string                   `json:"entityID_in"`
	EntityIDMinIn        []string                   `json:"entityIDMin_in"`
	EntityIDMaxIn        []string                   `json:"entityIDMax_in"`
	EntityIDNotIn        []string                   `json:"entityID_not_in"`
	EntityIDMinNotIn     []string                   `json:"entityIDMin_not_in"`
	EntityIDMaxNotIn     []string                   `json:"entityIDMax_not_in"`
	EntityIDLike         *string                    `json:"entityID_like"`
	EntityIDMinLike      *string                    `json:"entityIDMin_like"`
	EntityIDMaxLike      *string                    `json:"entityIDMax_like"`
	EntityIDPrefix       *string                    `json:"entityID_prefix"`
	EntityIDMinPrefix    *string                    `json:"entityIDMin_prefix"`
	EntityIDMaxPrefix    *string                    `json:"entityIDMax_prefix"`
	EntityIDSuffix       *string                    `json:"entityID_suffix"`
	EntityIDMinSuffix    *string                    `json:"entityIDMin_suffix"`
	EntityIDMaxSuffix    *string                    `json:"entityIDMax_suffix"`
	EntityIDNull         *bool                      `json:"entityID_null"`
	PrincipalID          *string                    `json:"principalID"`
	PrincipalIDMin       *string                    `json:"principalIDMin"`
	PrincipalIDMax       *string                    `json:"principalIDMax"`
	PrincipalIDNe        *string                    `json:"principalID_ne"`
	PrincipalIDMinNe     *string                    `json:"principalIDMin_ne"`
	PrincipalIDMaxNe     *string                    `json:"principalIDMax_ne"`
	PrincipalIDGt        *string                    `json:"principalID_gt"`
	PrincipalIDMinGt     *string                    `json:"principalIDMin_gt"`
	PrincipalIDMaxGt     *string                    `json:"principalIDMax_gt"`
	PrincipalIDLt        *string                    `json:"principalID_lt"`
	PrincipalIDMinLt     *string                    `json:"principalIDMin_lt"`
	PrincipalIDMaxLt     *string                    `json:"principalIDMax_lt"`
	PrincipalIDGte       *string                    `json:"principalID_gte"`
	PrincipalIDMinGte    *string                    `json:"principalIDMin_gte"`
	PrincipalIDMaxGte    *string                    `json:"principalIDMax_gte"`
	PrincipalIDLte       *string                    `json:"principalID_lte"`
	PrincipalIDMinLte    *string                    `json:"principalIDMin_lte"`
	PrincipalIDMaxLte    *string                    `json:"principalIDMax_lte"`
	PrincipalIDIn        []string                   `json:"principalID_in"`
	PrincipalIDMinIn     []string                   `json:"principalIDMin_in"`
	PrincipalIDMaxIn     []string                   `json:"principalIDMax_in"`
	PrincipalIDNotIn     []string                   `json:"principalID_not_in"`
	PrincipalIDMinNotIn  []string                   `json:"principalIDMin_not_in"`
	PrincipalIDMaxNotIn  []string                   `json:"principalIDMax_not_in"`
	PrincipalIDLike      *string                    `json:"principalID_like"`
	PrincipalIDMinLike   *string                    `json:"principalIDMin_like"`
	PrincipalIDMaxLike   *string                    `json:"principalIDMax_like"`
	PrincipalIDPrefix    *string                    `json:"principalID_prefix"`
	PrincipalIDMinPrefix *string                    `json:"principalIDMin_prefix"`
	PrincipalIDMaxPrefix *string                    `json:"principalIDMax_prefix"`
	PrincipalIDSuffix    *string                    `json:"principalID_suffix"`
	PrincipalIDMinSuffix *string                    `json:"principalIDMin_suffix"`
	PrincipalIDMaxSuffix *string                    `json:"principalIDMax_suffix"`
	PrincipalIDNull      *bool                      `json:"principalID_null"`
	Type                 *ChangelogType             `json:"type"`
	TypeMin              *ChangelogType             `json:"typeMin"`
	TypeMax              *ChangelogType             `json:"typeMax"`
	TypeNe               *ChangelogType             `json:"type_ne"`
	TypeMinNe            *ChangelogType             `json:"typeMin_ne"`
	TypeMaxNe            *ChangelogType             `json:"typeMax_ne"`
	TypeGt               *ChangelogType             `json:"type_gt"`
	TypeMinGt            *ChangelogType             `json:"typeMin_gt"`
	TypeMaxGt            *ChangelogType             `json:"typeMax_gt"`
	TypeLt               *ChangelogType             `json:"type_lt"`
	TypeMinLt            *ChangelogType             `json:"typeMin_lt"`
	TypeMaxLt            *ChangelogType             `json:"typeMax_lt"`
	TypeGte              *ChangelogType             `json:"type_gte"`
	TypeMinGte           *ChangelogType             `json:"typeMin_gte"`
	TypeMaxGte           *ChangelogType             `json:"typeMax_gte"`
	TypeLte              *ChangelogType             `json:"type_lte"`
	TypeMinLte           *ChangelogType             `json:"typeMin_lte"`
	TypeMaxLte           *ChangelogType             `json:"typeMax_lte"`
	TypeIn               []ChangelogType            `json:"type_in"`
	TypeMinIn            []ChangelogType            `json:"typeMin_in"`
	TypeMaxIn            []ChangelogType            `json:"typeMax_in"`
	TypeNotIn            []ChangelogType            `json:"type_not_in"`
	TypeMinNotIn         []ChangelogType            `json:"typeMin_not_in"`
	TypeMaxNotIn         []ChangelogType            `json:"typeMax_not_in"`
	TypeNull             *bool                      `json:"type_null"`
	Date                 *time.Time                 `json:"date"`
	DateMin              *time.Time                 `json:"dateMin"`
	DateMax              *time.Time                 `json:"dateMax"`
	DateNe               *time.Time                 `json:"date_ne"`
	DateMinNe            *time.Time                 `json:"dateMin_ne"`
	DateMaxNe            *time.Time                 `json:"dateMax_ne"`
	DateGt               *time.Time                 `json:"date_gt"`
	DateMinGt            *time.Time                 `json:"dateMin_gt"`
	DateMaxGt            *time.Time                 `json:"dateMax_gt"`
	DateLt               *time.Time                 `json:"date_lt"`
	DateMinLt            *time.Time                 `json:"dateMin_lt"`
	DateMaxLt            *time.Time                 `json:"dateMax_lt"`
	DateGte              *time.Time                 `json:"date_gte"`
	DateMinGte           *time.Time                 `json:"dateMin_gte"`
	DateMaxGte           *time.Time                 `json:"dateMax_gte"`
	DateLte              *time.Time                 `json:"date_lte"`
	DateMinLte           *time.Time                 `json:"dateMin_lte"`
	DateMaxLte           *time.Time                 `json:"dateMax_lte"`
	DateIn               []*time.Time               `json:"date_in"`
	DateMinIn            []*time.Time               `json:"dateMin_in"`
	DateMaxIn            []*time.Time               `json:"dateMax_in"`
	DateNotIn            []*time.Time               `json:"date_not_in"`
	DateMinNotIn         []*time.Time               `json:"dateMin_not_in"`
	DateMaxNotIn         []*time.Time               `json:"dateMax_not_in"`
	DateNull             *bool                      `json:"date_null"`
	UpdatedAt            *time.Time                 `json:"updatedAt"`
	UpdatedAtMin         *time.Time                 `json:"updatedAtMin"`
	UpdatedAtMax         *time.Time                 `json:"updatedAtMax"`
	UpdatedAtNe          *time.Time                 `json:"updatedAt_ne"`
	UpdatedAtMinNe       *time.Time                 `json:"updatedAtMin_ne"`
	UpdatedAtMaxNe       *time.Time                 `json:"updatedAtMax_ne"`
	UpdatedAtGt          *time.Time                 `json:"updatedAt_gt"`
	UpdatedAtMinGt       *time.Time                 `json:"updatedAtMin_gt"`
	UpdatedAtMaxGt       *time.Time                 `json:"updatedAtMax_gt"`
	UpdatedAtLt          *time.Time                 `json:"updatedAt_lt"`
	UpdatedAtMinLt       *time.Time                 `json:"updatedAtMin_lt"`
	UpdatedAtMaxLt       *time.Time                 `json:"updatedAtMax_lt"`
	UpdatedAtGte         *time.Time                 `json:"updatedAt_gte"`
	UpdatedAtMinGte      *time.Time                 `json:"updatedAtMin_gte"`
	UpdatedAtMaxGte      *time.Time                 `json:"updatedAtMax_gte"`
	UpdatedAtLte         *time.Time                 `json:"updatedAt_lte"`
	UpdatedAtMinLte      *time.Time                 `json:"updatedAtMin_lte"`
	UpdatedAtMaxLte      *time.Time                 `json:"updatedAtMax_lte"`
	UpdatedAtIn          []*time.Time               `json:"updatedAt_in"`
	UpdatedAtMinIn       []*time.Time               `json:"updatedAtMin_in"`
	UpdatedAtMaxIn       []*time.Time               `json:"updatedAtMax_in"`
	UpdatedAtNotIn       []*time.Time               `json:"updatedAt_not_in"`
	UpdatedAtMinNotIn    []*time.Time               `json:"updatedAtMin_not_in"`
	UpdatedAtMaxNotIn    []*time.Time               `json:"updatedAtMax_not_in"`
	UpdatedAtNull        *bool                      `json:"updatedAt_null"`
	CreatedAt            *time.Time                 `json:"createdAt"`
	CreatedAtMin         *time.Time                 `json:"createdAtMin"`
	CreatedAtMax         *time.Time                 `json:"createdAtMax"`
	CreatedAtNe          *time.Time                 `json:"createdAt_ne"`
	CreatedAtMinNe       *time.Time                 `json:"createdAtMin_ne"`
	CreatedAtMaxNe       *time.Time                 `json:"createdAtMax_ne"`
	CreatedAtGt          *time.Time                 `json:"createdAt_gt"`
	CreatedAtMinGt       *time.Time                 `json:"createdAtMin_gt"`
	CreatedAtMaxGt       *time.Time                 `json:"createdAtMax_gt"`
	CreatedAtLt          *time.Time                 `json:"createdAt_lt"`
	CreatedAtMinLt       *time.Time                 `json:"createdAtMin_lt"`
	CreatedAtMaxLt       *time.Time                 `json:"createdAtMax_lt"`
	CreatedAtGte         *time.Time                 `json:"createdAt_gte"`
	CreatedAtMinGte      *time.Time                 `json:"createdAtMin_gte"`
	CreatedAtMaxGte      *time.Time                 `json:"createdAtMax_gte"`
	CreatedAtLte         *time.Time                 `json:"createdAt_lte"`
	CreatedAtMinLte      *time.Time                 `json:"createdAtMin_lte"`
	CreatedAtMaxLte      *time.Time                 `json:"createdAtMax_lte"`
	CreatedAtIn          []*time.Time               `json:"createdAt_in"`
	CreatedAtMinIn       []*time.Time               `json:"createdAtMin_in"`
	CreatedAtMaxIn       []*time.Time               `json:"createdAtMax_in"`
	CreatedAtNotIn       []*time.Time               `json:"createdAt_not_in"`
	CreatedAtMinNotIn    []*time.Time               `json:"createdAtMin_not_in"`
	CreatedAtMaxNotIn    []*time.Time               `json:"createdAtMax_not_in"`
	CreatedAtNull        *bool                      `json:"createdAt_null"`
	UpdatedBy            *string                    `json:"updatedBy"`
	UpdatedByMin         *string                    `json:"updatedByMin"`
	UpdatedByMax         *string                    `json:"updatedByMax"`
	UpdatedByNe          *string                    `json:"updatedBy_ne"`
	UpdatedByMinNe       *string                    `json:"updatedByMin_ne"`
	UpdatedByMaxNe       *string                    `json:"updatedByMax_ne"`
	UpdatedByGt          *string                    `json:"updatedBy_gt"`
	UpdatedByMinGt       *string                    `json:"updatedByMin_gt"`
	UpdatedByMaxGt       *string                    `json:"updatedByMax_gt"`
	UpdatedByLt          *string                    `json:"updatedBy_lt"`
	UpdatedByMinLt       *string                    `json:"updatedByMin_lt"`
	UpdatedByMaxLt       *string                    `json:"updatedByMax_lt"`
	UpdatedByGte         *string                    `json:"updatedBy_gte"`
	UpdatedByMinGte      *string                    `json:"updatedByMin_gte"`
	UpdatedByMaxGte      *string                    `json:"updatedByMax_gte"`
	UpdatedByLte         *string                    `json:"updatedBy_lte"`
	UpdatedByMinLte      *string                    `json:"updatedByMin_lte"`
	UpdatedByMaxLte      *string                    `json:"updatedByMax_lte"`
	UpdatedByIn          []string                   `json:"updatedBy_in"`
	UpdatedByMinIn       []string                   `json:"updatedByMin_in"`
	UpdatedByMaxIn       []string                   `json:"updatedByMax_in"`
	UpdatedByNotIn       []string                   `json:"updatedBy_not_in"`
	UpdatedByMinNotIn    []string                   `json:"updatedByMin_not_in"`
	UpdatedByMaxNotIn    []string                   `json:"updatedByMax_not_in"`
	UpdatedByNull        *bool                      `json:"updatedBy_null"`
	CreatedBy            *string                    `json:"createdBy"`
	CreatedByMin         *string                    `json:"createdByMin"`
	CreatedByMax         *string                    `json:"createdByMax"`
	CreatedByNe          *string                    `json:"createdBy_ne"`
	CreatedByMinNe       *string                    `json:"createdByMin_ne"`
	CreatedByMaxNe       *string                    `json:"createdByMax_ne"`
	CreatedByGt          *string                    `json:"createdBy_gt"`
	CreatedByMinGt       *string                    `json:"createdByMin_gt"`
	CreatedByMaxGt       *string                    `json:"createdByMax_gt"`
	CreatedByLt          *string                    `json:"createdBy_lt"`
	CreatedByMinLt       *string                    `json:"createdByMin_lt"`
	CreatedByMaxLt       *string                    `json:"createdByMax_lt"`
	CreatedByGte         *string                    `json:"createdBy_gte"`
	CreatedByMinGte      *string                    `json:"createdByMin_gte"`
	CreatedByMaxGte      *string                    `json:"createdByMax_gte"`
	CreatedByLte         *string                    `json:"createdBy_lte"`
	CreatedByMinLte      *string                    `json:"createdByMin_lte"`
	CreatedByMaxLte      *string                    `json:"createdByMax_lte"`
	CreatedByIn          []string                   `json:"createdBy_in"`
	CreatedByMinIn       []string                   `json:"createdByMin_in"`
	CreatedByMaxIn       []string                   `json:"createdByMax_in"`
	CreatedByNotIn       []string                   `json:"createdBy_not_in"`
	CreatedByMinNotIn    []string                   `json:"createdByMin_not_in"`
	CreatedByMaxNotIn    []string                   `json:"createdByMax_not_in"`
	CreatedByNull        *bool                      `json:"createdBy_null"`
	Changes              *ChangelogChangeFilterType `json:"changes"`
}

func (*ChangelogFilterType) AndWith

AndWith convenience method for combining two or more filters with AND statement

func (*ChangelogFilterType) Apply

func (f *ChangelogFilterType) Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, whereValues *[]interface{}, havings *[]string, havingValues *[]interface{}, joins *[]string) error

Apply ...

func (*ChangelogFilterType) ApplyWithAlias

func (f *ChangelogFilterType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, wheres *[]string, whereValues *[]interface{}, havings *[]string, havingValues *[]interface{}, joins *[]string) error

ApplyWithAlias ...

func (*ChangelogFilterType) HavingContent

func (f *ChangelogFilterType) HavingContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

HavingContent ...

func (*ChangelogFilterType) IsEmpty

func (f *ChangelogFilterType) IsEmpty(ctx context.Context, dialect gorm.Dialect) bool

IsEmpty ...

func (*ChangelogFilterType) OrWith

OrWith convenience method for combining two or more filters with OR statement

func (*ChangelogFilterType) WhereContent

func (f *ChangelogFilterType) WhereContent(dialect gorm.Dialect, aliasPrefix string) (conditions []string, values []interface{})

WhereContent ...

type ChangelogQueryFilter

type ChangelogQueryFilter struct {
	Query *string
}

ChangelogQueryFilter ...

func (*ChangelogQueryFilter) Apply

func (qf *ChangelogQueryFilter) Apply(ctx context.Context, dialect gorm.Dialect, selectionSet *ast.SelectionSet, wheres *[]string, values *[]interface{}, joins *[]string) error

Apply ...

type ChangelogResolver

type ChangelogResolver interface {
	Changes(ctx context.Context, obj *Changelog) ([]*ChangelogChange, error)

	ChangesIds(ctx context.Context, obj *Changelog) ([]string, error)
	ChangesConnection(ctx context.Context, obj *Changelog, offset *int, limit *int, q *string, sort []*ChangelogChangeSortType, filter *ChangelogChangeFilterType) (*ChangelogChangeResultType, error)
}

type ChangelogResultAggregations

type ChangelogResultAggregations struct {
	EntityMin      string  `json:"entityMin"`
	EntityMax      string  `json:"entityMax"`
	EntityIDMin    string  `json:"entityIDMin"`
	EntityIDMax    string  `json:"entityIDMax"`
	PrincipalIDMin *string `json:"principalIDMin"`
	PrincipalIDMax *string `json:"principalIDMax"`
}

type ChangelogResultType

type ChangelogResultType struct {
	EntityResultType
}

ChangelogResultType ...

func QueryChangelogsHandler

QueryChangelogsHandler ...

type ChangelogResultTypeResolver

type ChangelogResultTypeResolver interface {
	Items(ctx context.Context, obj *ChangelogResultType) ([]*Changelog, error)
	Count(ctx context.Context, obj *ChangelogResultType) (int, error)
	Aggregations(ctx context.Context, obj *ChangelogResultType) (*ChangelogResultAggregations, error)
}

type ChangelogSortType

type ChangelogSortType struct {
	ID             *ObjectSortType          `json:"id"`
	IDMin          *ObjectSortType          `json:"idMin"`
	IDMax          *ObjectSortType          `json:"idMax"`
	Entity         *ObjectSortType          `json:"entity"`
	EntityMin      *ObjectSortType          `json:"entityMin"`
	EntityMax      *ObjectSortType          `json:"entityMax"`
	EntityID       *ObjectSortType          `json:"entityID"`
	EntityIDMin    *ObjectSortType          `json:"entityIDMin"`
	EntityIDMax    *ObjectSortType          `json:"entityIDMax"`
	PrincipalID    *ObjectSortType          `json:"principalID"`
	PrincipalIDMin *ObjectSortType          `json:"principalIDMin"`
	PrincipalIDMax *ObjectSortType          `json:"principalIDMax"`
	Type           *ObjectSortType          `json:"type"`
	TypeMin        *ObjectSortType          `json:"typeMin"`
	TypeMax        *ObjectSortType          `json:"typeMax"`
	Date           *ObjectSortType          `json:"date"`
	DateMin        *ObjectSortType          `json:"dateMin"`
	DateMax        *ObjectSortType          `json:"dateMax"`
	UpdatedAt      *ObjectSortType          `json:"updatedAt"`
	UpdatedAtMin   *ObjectSortType          `json:"updatedAtMin"`
	UpdatedAtMax   *ObjectSortType          `json:"updatedAtMax"`
	CreatedAt      *ObjectSortType          `json:"createdAt"`
	CreatedAtMin   *ObjectSortType          `json:"createdAtMin"`
	CreatedAtMax   *ObjectSortType          `json:"createdAtMax"`
	UpdatedBy      *ObjectSortType          `json:"updatedBy"`
	UpdatedByMin   *ObjectSortType          `json:"updatedByMin"`
	UpdatedByMax   *ObjectSortType          `json:"updatedByMax"`
	CreatedBy      *ObjectSortType          `json:"createdBy"`
	CreatedByMin   *ObjectSortType          `json:"createdByMin"`
	CreatedByMax   *ObjectSortType          `json:"createdByMax"`
	ChangesIds     *ObjectSortType          `json:"changesIds"`
	ChangesIdsMin  *ObjectSortType          `json:"changesIdsMin"`
	ChangesIdsMax  *ObjectSortType          `json:"changesIdsMax"`
	Changes        *ChangelogChangeSortType `json:"changes"`
}

func (ChangelogSortType) Apply

func (s ChangelogSortType) Apply(ctx context.Context, dialect gorm.Dialect, sorts *[]SortInfo, joins *[]string) error

Apply ...

func (ChangelogSortType) ApplyWithAlias

func (s ChangelogSortType) ApplyWithAlias(ctx context.Context, dialect gorm.Dialect, alias string, sorts *[]SortInfo, joins *[]string) error

ApplyWithAlias ...

type ChangelogType

type ChangelogType string
const (
	ChangelogTypeCreated ChangelogType = "CREATED"
	ChangelogTypeUpdated ChangelogType = "UPDATED"
	ChangelogTypeDeleted ChangelogType = "DELETED"
)

func (ChangelogType) IsValid

func (e ChangelogType) IsValid() bool

func (ChangelogType) MarshalGQL

func (e ChangelogType) MarshalGQL(w io.Writer)

func (ChangelogType) String

func (e ChangelogType) String() string

func (*ChangelogType) UnmarshalGQL

func (e *ChangelogType) UnmarshalGQL(v interface{}) error

type ComplexityRoot

type ComplexityRoot struct {
	Changelog struct {
		Changes           func(childComplexity int) int
		ChangesConnection func(childComplexity int, offset *int, limit *int, q *string, sort []*ChangelogChangeSortType, filter *ChangelogChangeFilterType) int
		ChangesIds        func(childComplexity int) int
		CreatedAt         func(childComplexity int) int
		CreatedBy         func(childComplexity int) int
		Date              func(childComplexity int) int
		Entity            func(childComplexity int) int
		EntityID          func(childComplexity int) int
		ID                func(childComplexity int) int
		PrincipalID       func(childComplexity int) int
		Type              func(childComplexity int) int
		UpdatedAt         func(childComplexity int) int
		UpdatedBy         func(childComplexity int) int
	}

	ChangelogChange struct {
		Column    func(childComplexity int) int
		CreatedAt func(childComplexity int) int
		CreatedBy func(childComplexity int) int
		ID        func(childComplexity int) int
		Log       func(childComplexity int) int
		LogID     func(childComplexity int) int
		NewValue  func(childComplexity int) int
		OldValue  func(childComplexity int) int
		UpdatedAt func(childComplexity int) int
		UpdatedBy func(childComplexity int) int
	}

	ChangelogChangeResultAggregations struct {
		ColumnMax   func(childComplexity int) int
		ColumnMin   func(childComplexity int) int
		NewValueMax func(childComplexity int) int
		NewValueMin func(childComplexity int) int
		OldValueMax func(childComplexity int) int
		OldValueMin func(childComplexity int) int
	}

	ChangelogChangeResultType struct {
		Aggregations func(childComplexity int) int
		Count        func(childComplexity int) int
		Items        func(childComplexity int) int
	}

	ChangelogResultAggregations struct {
		EntityIDMax    func(childComplexity int) int
		EntityIDMin    func(childComplexity int) int
		EntityMax      func(childComplexity int) int
		EntityMin      func(childComplexity int) int
		PrincipalIDMax func(childComplexity int) int
		PrincipalIDMin func(childComplexity int) int
	}

	ChangelogResultType struct {
		Aggregations func(childComplexity int) int
		Count        func(childComplexity int) int
		Items        func(childComplexity int) int
	}

	Mutation struct {
		CreateChangelog           func(childComplexity int, input map[string]interface{}) int
		CreateChangelogChange     func(childComplexity int, input map[string]interface{}) int
		DeleteAllChangelogChanges func(childComplexity int) int
		DeleteAllChangelogs       func(childComplexity int) int
		DeleteChangelog           func(childComplexity int, id string) int
		DeleteChangelogChange     func(childComplexity int, id string) int
		UpdateChangelog           func(childComplexity int, id string, input map[string]interface{}) int
		UpdateChangelogChange     func(childComplexity int, id string, input map[string]interface{}) int
	}

	Query struct {
		Changelog        func(childComplexity int, id *string, q *string, filter *ChangelogFilterType) int
		ChangelogChange  func(childComplexity int, id *string, q *string, filter *ChangelogChangeFilterType) int
		ChangelogChanges func(childComplexity int, offset *int, limit *int, q *string, sort []*ChangelogChangeSortType, filter *ChangelogChangeFilterType) int
		Changelogs       func(childComplexity int, offset *int, limit *int, q *string, sort []*ChangelogSortType, filter *ChangelogFilterType) int
		// contains filtered or unexported fields
	}
	// contains filtered or unexported fields
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DB

type DB struct {
	// contains filtered or unexported fields
}

DB ...

func NewDB

func NewDB(db *gorm.DB) *DB

NewDB ...

func NewDBFromEnvVars

func NewDBFromEnvVars() *DB

NewDBFromEnvVars Create database client using DATABASE_URL environment variable

func NewDBWithString

func NewDBWithString(urlString string) *DB

NewDBWithString creates database instance with database URL string

func (*DB) AutoMigrate

func (db *DB) AutoMigrate() error

AutoMigrate run basic gorm automigration

func (*DB) Close

func (db *DB) Close() error

Close ...

func (*DB) Migrate

func (db *DB) Migrate(migrations []*gormigrate.Migration) error

Migrate run migrations using automigrate

func (*DB) Ping

func (db *DB) Ping() error

Ping ...

func (*DB) Query

func (db *DB) Query() *gorm.DB

Query ...

type DirectiveRoot

type DirectiveRoot struct {
}

type EntityFilter

type EntityFilter interface {
	Apply(ctx context.Context, dialect gorm.Dialect, wheres *[]string, whereValues *[]interface{}, havings *[]string, havingValues *[]interface{}, joins *[]string) error
}

EntityFilter ...

type EntityFilterQuery

type EntityFilterQuery interface {
	Apply(ctx context.Context, dialect gorm.Dialect, selectionSet *ast.SelectionSet, wheres *[]string, values *[]interface{}, joins *[]string) error
}

EntityFilterQuery ...

type EntityResultType

type EntityResultType struct {
	Offset       *int
	Limit        *int
	Query        EntityFilterQuery
	Sort         []EntitySort
	Filter       EntityFilter
	Fields       []*ast.Field
	SelectionSet *ast.SelectionSet
}

EntityResultType ...

func (*EntityResultType) GetAggregations

func (r *EntityResultType) GetAggregations(ctx context.Context, db *gorm.DB, opts GetAggregationsOptions, model interface{}, out interface{}) error

GetAggregations ...

func (*EntityResultType) GetCount

func (r *EntityResultType) GetCount(ctx context.Context, db *gorm.DB, opts GetItemsOptions, out interface{}) (count int, err error)

GetCount ...

func (*EntityResultType) GetItems

func (r *EntityResultType) GetItems(ctx context.Context, db *gorm.DB, opts GetItemsOptions, out interface{}) error

GetItems ...

func (*EntityResultType) GetSortStrings

func (r *EntityResultType) GetSortStrings() []string

GetSortStrings ...

type EntitySort

type EntitySort interface {
	Apply(ctx context.Context, dialect gorm.Dialect, sorts *[]SortInfo, joins *[]string) error
}

EntitySort ...

type EventController

type EventController struct {
	// contains filtered or unexported fields
}

EventController ...

func NewEventController

func NewEventController() (ec EventController, err error)

NewEventController ...

func (*EventController) SendEvent

func (c *EventController) SendEvent(ctx context.Context, e *events.Event) (err error)

SendEvent ...

type GeneratedChangelogChangeResolver

type GeneratedChangelogChangeResolver struct{ *GeneratedResolver }

func (*GeneratedChangelogChangeResolver) Log

Log ...

type GeneratedChangelogChangeResultTypeResolver

type GeneratedChangelogChangeResultTypeResolver struct{ *GeneratedResolver }

GeneratedChangelogChangeResultTypeResolver ...

func (*GeneratedChangelogChangeResultTypeResolver) Aggregations

Aggregations ...

func (*GeneratedChangelogChangeResultTypeResolver) Count

Count ...

func (*GeneratedChangelogChangeResultTypeResolver) Items

Items ...

type GeneratedChangelogResolver

type GeneratedChangelogResolver struct{ *GeneratedResolver }

func (*GeneratedChangelogResolver) Changes

func (r *GeneratedChangelogResolver) Changes(ctx context.Context, obj *Changelog) (res []*ChangelogChange, err error)

Changes ...

func (*GeneratedChangelogResolver) ChangesConnection

func (r *GeneratedChangelogResolver) ChangesConnection(ctx context.Context, obj *Changelog, offset *int, limit *int, q *string, sort []*ChangelogChangeSortType, filter *ChangelogChangeFilterType) (res *ChangelogChangeResultType, err error)

ChangesConnection ...

func (*GeneratedChangelogResolver) ChangesIds

func (r *GeneratedChangelogResolver) ChangesIds(ctx context.Context, obj *Changelog) (ids []string, err error)

ChangesIds ...

type GeneratedChangelogResultTypeResolver

type GeneratedChangelogResultTypeResolver struct{ *GeneratedResolver }

GeneratedChangelogResultTypeResolver ...

func (*GeneratedChangelogResultTypeResolver) Aggregations

Aggregations ...

func (*GeneratedChangelogResultTypeResolver) Count

Count ...

func (*GeneratedChangelogResultTypeResolver) Items

Items ...

type GeneratedMutationResolver

type GeneratedMutationResolver struct{ *GeneratedResolver }

GeneratedMutationResolver ...

func (*GeneratedMutationResolver) CreateChangelog

func (r *GeneratedMutationResolver) CreateChangelog(ctx context.Context, input map[string]interface{}) (item *Changelog, err error)

CreateChangelog ...

func (*GeneratedMutationResolver) CreateChangelogChange

func (r *GeneratedMutationResolver) CreateChangelogChange(ctx context.Context, input map[string]interface{}) (item *ChangelogChange, err error)

CreateChangelogChange ...

func (*GeneratedMutationResolver) DeleteAllChangelogChanges

func (r *GeneratedMutationResolver) DeleteAllChangelogChanges(ctx context.Context) (bool, error)

DeleteAllChangelogChanges ...

func (*GeneratedMutationResolver) DeleteAllChangelogs

func (r *GeneratedMutationResolver) DeleteAllChangelogs(ctx context.Context) (bool, error)

DeleteAllChangelogs ...

func (*GeneratedMutationResolver) DeleteChangelog

func (r *GeneratedMutationResolver) DeleteChangelog(ctx context.Context, id string) (item *Changelog, err error)

DeleteChangelog ...

func (*GeneratedMutationResolver) DeleteChangelogChange

func (r *GeneratedMutationResolver) DeleteChangelogChange(ctx context.Context, id string) (item *ChangelogChange, err error)

DeleteChangelogChange ...

func (*GeneratedMutationResolver) UpdateChangelog

func (r *GeneratedMutationResolver) UpdateChangelog(ctx context.Context, id string, input map[string]interface{}) (item *Changelog, err error)

UpdateChangelog ...

func (*GeneratedMutationResolver) UpdateChangelogChange

func (r *GeneratedMutationResolver) UpdateChangelogChange(ctx context.Context, id string, input map[string]interface{}) (item *ChangelogChange, err error)

UpdateChangelogChange ...

type GeneratedQueryResolver

type GeneratedQueryResolver struct{ *GeneratedResolver }

GeneratedQueryResolver ...

func (*GeneratedQueryResolver) Changelog

func (r *GeneratedQueryResolver) Changelog(ctx context.Context, id *string, q *string, filter *ChangelogFilterType) (*Changelog, error)

Changelog ...

func (*GeneratedQueryResolver) ChangelogChange

func (r *GeneratedQueryResolver) ChangelogChange(ctx context.Context, id *string, q *string, filter *ChangelogChangeFilterType) (*ChangelogChange, error)

ChangelogChange ...

func (*GeneratedQueryResolver) ChangelogChanges

func (r *GeneratedQueryResolver) ChangelogChanges(ctx context.Context, offset *int, limit *int, q *string, sort []*ChangelogChangeSortType, filter *ChangelogChangeFilterType) (*ChangelogChangeResultType, error)

ChangelogChanges ...

func (*GeneratedQueryResolver) Changelogs

func (r *GeneratedQueryResolver) Changelogs(ctx context.Context, offset *int, limit *int, q *string, sort []*ChangelogSortType, filter *ChangelogFilterType) (*ChangelogResultType, error)

Changelogs ...

type GeneratedResolver

type GeneratedResolver struct {
	Handlers ResolutionHandlers

	EventController *EventController
	// contains filtered or unexported fields
}

GeneratedResolver ...

func NewGeneratedResolver

func NewGeneratedResolver(handlers ResolutionHandlers, db *DB, ec *EventController) *GeneratedResolver

NewGeneratedResolver ...

func (*GeneratedResolver) ChangelogChangesCount

func (r *GeneratedResolver) ChangelogChangesCount(ctx context.Context, opts QueryChangelogChangesHandlerOptions) (count int, err error)

ChangelogChangesCount ...

func (*GeneratedResolver) ChangelogChangesItems

func (r *GeneratedResolver) ChangelogChangesItems(ctx context.Context, opts QueryChangelogChangesHandlerOptions) (res []*ChangelogChange, err error)

ChangelogChangesItems ...

func (*GeneratedResolver) ChangelogsCount

func (r *GeneratedResolver) ChangelogsCount(ctx context.Context, opts QueryChangelogsHandlerOptions) (count int, err error)

ChangelogsCount ...

func (*GeneratedResolver) ChangelogsItems

func (r *GeneratedResolver) ChangelogsItems(ctx context.Context, opts QueryChangelogsHandlerOptions) (res []*Changelog, err error)

ChangelogsItems ...

func (*GeneratedResolver) GetDB

func (r *GeneratedResolver) GetDB(ctx context.Context) *gorm.DB

GetDB returns database connection or transaction for given context (if exists)

type GetAggregationsAggregationField

type GetAggregationsAggregationField struct {
	Name     string
	Function string
}

GetAggregationsAggregationField ...

type GetAggregationsOptions

type GetAggregationsOptions struct {
	Alias             string
	Fields            []string
	AggregationFields []GetAggregationsAggregationField
}

GetAggregationsOptions ...

type GetItemsOptions

type GetItemsOptions struct {
	Alias      string
	Preloaders []string
}

GetItemsOptions ...

type JWTClaims

type JWTClaims struct {
	jwtgo.StandardClaims
	Scope *string
}

JWTClaims ...

func GetJWTClaimsFromContext

func GetJWTClaimsFromContext(ctx context.Context) *JWTClaims

GetJWTClaimsFromContext ...

func (*JWTClaims) HasScope

func (c *JWTClaims) HasScope(scope string) bool

HasScope ...

func (*JWTClaims) Scopes

func (c *JWTClaims) Scopes() []string

Scopes ...

type MutationEvents

type MutationEvents struct {
	Events []events.Event
}

MutationEvents ...

func GetMutationEventStore

func GetMutationEventStore(ctx context.Context) *MutationEvents

GetMutationEventStore ...

type MutationResolver

type MutationResolver interface {
	CreateChangelogChange(ctx context.Context, input map[string]interface{}) (*ChangelogChange, error)
	UpdateChangelogChange(ctx context.Context, id string, input map[string]interface{}) (*ChangelogChange, error)
	DeleteChangelogChange(ctx context.Context, id string) (*ChangelogChange, error)
	DeleteAllChangelogChanges(ctx context.Context) (bool, error)
	CreateChangelog(ctx context.Context, input map[string]interface{}) (*Changelog, error)
	UpdateChangelog(ctx context.Context, id string, input map[string]interface{}) (*Changelog, error)
	DeleteChangelog(ctx context.Context, id string) (*Changelog, error)
	DeleteAllChangelogs(ctx context.Context) (bool, error)
}

type ObjectSortType

type ObjectSortType string
const (
	ObjectSortTypeAsc  ObjectSortType = "ASC"
	ObjectSortTypeDesc ObjectSortType = "DESC"
)

func (ObjectSortType) IsValid

func (e ObjectSortType) IsValid() bool

func (ObjectSortType) MarshalGQL

func (e ObjectSortType) MarshalGQL(w io.Writer)

func (ObjectSortType) String

func (e ObjectSortType) String() string

func (*ObjectSortType) UnmarshalGQL

func (e *ObjectSortType) UnmarshalGQL(v interface{}) error

type QueryChangelogChangeHandlerOptions

type QueryChangelogChangeHandlerOptions struct {
	ID     *string
	Q      *string
	Filter *ChangelogChangeFilterType
}

QueryChangelogChangeHandlerOptions ...

type QueryChangelogChangesHandlerOptions

type QueryChangelogChangesHandlerOptions struct {
	Offset *int
	Limit  *int
	Q      *string
	Sort   []*ChangelogChangeSortType
	Filter *ChangelogChangeFilterType
}

QueryChangelogChangesHandlerOptions ...

type QueryChangelogHandlerOptions

type QueryChangelogHandlerOptions struct {
	ID     *string
	Q      *string
	Filter *ChangelogFilterType
}

QueryChangelogHandlerOptions ...

type QueryChangelogsHandlerOptions

type QueryChangelogsHandlerOptions struct {
	Offset *int
	Limit  *int
	Q      *string
	Sort   []*ChangelogSortType
	Filter *ChangelogFilterType
}

QueryChangelogsHandlerOptions ...

type QueryResolver

type QueryResolver interface {
	ChangelogChange(ctx context.Context, id *string, q *string, filter *ChangelogChangeFilterType) (*ChangelogChange, error)
	ChangelogChanges(ctx context.Context, offset *int, limit *int, q *string, sort []*ChangelogChangeSortType, filter *ChangelogChangeFilterType) (*ChangelogChangeResultType, error)
	Changelog(ctx context.Context, id *string, q *string, filter *ChangelogFilterType) (*Changelog, error)
	Changelogs(ctx context.Context, offset *int, limit *int, q *string, sort []*ChangelogSortType, filter *ChangelogFilterType) (*ChangelogResultType, error)
	// contains filtered or unexported methods
}

type ResolutionHandlers

type ResolutionHandlers struct {
	OnEvent func(ctx context.Context, r *GeneratedResolver, e *events.Event) error

	CreateChangelogChange     func(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *ChangelogChange, err error)
	UpdateChangelogChange     func(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *ChangelogChange, err error)
	DeleteChangelogChange     func(ctx context.Context, r *GeneratedResolver, id string) (item *ChangelogChange, err error)
	DeleteAllChangelogChanges func(ctx context.Context, r *GeneratedResolver) (bool, error)
	QueryChangelogChange      func(ctx context.Context, r *GeneratedResolver, opts QueryChangelogChangeHandlerOptions) (*ChangelogChange, error)
	QueryChangelogChanges     func(ctx context.Context, r *GeneratedResolver, opts QueryChangelogChangesHandlerOptions) (*ChangelogChangeResultType, error)

	ChangelogChangeLog func(ctx context.Context, r *GeneratedResolver, obj *ChangelogChange) (res *Changelog, err error)

	CreateChangelog     func(ctx context.Context, r *GeneratedResolver, input map[string]interface{}) (item *Changelog, err error)
	UpdateChangelog     func(ctx context.Context, r *GeneratedResolver, id string, input map[string]interface{}) (item *Changelog, err error)
	DeleteChangelog     func(ctx context.Context, r *GeneratedResolver, id string) (item *Changelog, err error)
	DeleteAllChangelogs func(ctx context.Context, r *GeneratedResolver) (bool, error)
	QueryChangelog      func(ctx context.Context, r *GeneratedResolver, opts QueryChangelogHandlerOptions) (*Changelog, error)
	QueryChangelogs     func(ctx context.Context, r *GeneratedResolver, opts QueryChangelogsHandlerOptions) (*ChangelogResultType, error)

	ChangelogChanges func(ctx context.Context, r *GeneratedResolver, obj *Changelog) (res []*ChangelogChange, err error)
}

ResolutionHandlers ...

func DefaultResolutionHandlers

func DefaultResolutionHandlers() ResolutionHandlers

DefaultResolutionHandlers ...

type ResolverRoot

type ResolverRoot interface {
	Changelog() ChangelogResolver
	ChangelogChange() ChangelogChangeResolver
	ChangelogChangeResultType() ChangelogChangeResultTypeResolver
	ChangelogResultType() ChangelogResultTypeResolver
	Mutation() MutationResolver
	Query() QueryResolver
}

type SortInfo

type SortInfo struct {
	Field         string
	Direction     string
	IsAggregation bool
}

SortInfo ...

func (*SortInfo) String

func (si *SortInfo) String() string

String ...

Jump to

Keyboard shortcuts

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