You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sitling/users/graph/entity.resolvers.go

27 lines
879 B
Go

package graph
// This file will be automatically regenerated based on the schema, any resolver implementations
// will be copied through when generating and any unknown code will be moved to the end.
// Code generated by github.com/99designs/gqlgen version v0.17.39
import (
"context"
"github.com/Dan6erbond/sitling/users/graph/model"
)
// FindPetByID is the resolver for the findPetByID field.
func (r *entityResolver) FindPetByID(ctx context.Context, id string) (*model.Pet, error) {
return &model.Pet{ID: id}, nil
}
// FindUserByID is the resolver for the findUserByID field.
func (r *entityResolver) FindUserByID(ctx context.Context, id string) (*model.User, error) {
return &model.User{ID: id}, nil
}
// Entity returns EntityResolver implementation.
func (r *Resolver) Entity() EntityResolver { return &entityResolver{r} }
type entityResolver struct{ *Resolver }