21 lines
633 B
Go
21 lines
633 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.
|
|
|
|
import (
|
|
"context"
|
|
|
|
"forge.cadoles.com/Cadoles/daddy/internal/graph/generated"
|
|
"forge.cadoles.com/Cadoles/daddy/internal/graph/model"
|
|
)
|
|
|
|
func (r *queryResolver) UserProfile(ctx context.Context) (*model.User, error) {
|
|
return handleUserProfile(ctx)
|
|
}
|
|
|
|
// Query returns generated.QueryResolver implementation.
|
|
func (r *Resolver) Query() generated.QueryResolver { return &queryResolver{r} }
|
|
|
|
type queryResolver struct{ *Resolver }
|