taskcafe/internal/graph/resolver.go

17 lines
306 B
Go
Raw Permalink Normal View History

//go:generate sh ../scripts/genSchema.sh
2020-04-10 04:40:22 +02:00
//go:generate go run github.com/99designs/gqlgen
2020-04-10 04:40:22 +02:00
package graph
import (
"sync"
2020-08-07 03:50:35 +02:00
"github.com/jordanknott/taskcafe/internal/db"
2020-04-10 04:40:22 +02:00
)
// Resolver handles resolving GraphQL queries & mutations
2020-04-10 04:40:22 +02:00
type Resolver struct {
Repository db.Repository
2020-04-10 04:40:22 +02:00
mu sync.Mutex
}