ozon-task/graph/resolver.go

20 lines
414 B
Go
Raw Permalink Normal View History

2024-06-24 23:34:10 +00:00
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}
}