Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (15 sloc) 412 Bytes
package graphql
import (
type UserQueryResolver struct {
userService domain.UserService
func (r *UserQueryResolver) Inject(userService domain.UserService) *UserQueryResolver {
r.userService = userService
return r
func (r *UserQueryResolver) User(ctx context.Context, id string) (*domain.User, error) {
return r.userService.UserByID(ctx, id)
You can’t perform that action at this time.