testservice

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(dbCon *gorm.DB)

func ValidateDirective added in v0.2.0

func ValidateDirective(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error)

Types

type AddTodoHook

type AddTodoHook struct {
	db.DefaultAddHook[model.Todo, model.TodoInput, model.AddTodoPayload]
}

func (AddTodoHook) BeforeCallDb

func (a AddTodoHook) BeforeCallDb(ctx context.Context, db *gorm.DB, data []model.Todo) (*gorm.DB, []model.Todo, error)

Directories

Path Synopsis
db

Jump to

Keyboard shortcuts

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