ozon-task/graph/resolver.go
2024-06-25 02:34:10 +03:00

19 lines
414 B
Go

package graph
//go:generate go run github.com/99designs/gqlgen generate
import (
"git.obamna.ru/erius/ozon-task/internal/storage"
)
// This file will not be regenerated automatically.
//
// It serves as dependency injection for your app, add any dependencies you require here.
type Resolver struct {
Storage storage.Storage
}
func InitResolver(s storage.Storage) *Resolver {
return &Resolver{Storage: s}
}