2020-07-13 09:20:14 +02:00
|
|
|
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"
|
2020-07-13 14:44:05 +02:00
|
|
|
|
2020-07-13 09:20:14 +02:00
|
|
|
"forge.cadoles.com/Cadoles/daddy/internal/graph/generated"
|
2020-07-16 09:28:27 +02:00
|
|
|
model1 "forge.cadoles.com/Cadoles/daddy/internal/model"
|
2020-07-13 09:20:14 +02:00
|
|
|
)
|
|
|
|
|
2020-07-16 09:28:27 +02:00
|
|
|
func (r *queryResolver) UserProfile(ctx context.Context) (*model1.User, error) {
|
2020-07-13 14:55:32 +02:00
|
|
|
return handleUserProfile(ctx)
|
2020-07-13 09:20:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Query returns generated.QueryResolver implementation.
|
|
|
|
func (r *Resolver) Query() generated.QueryResolver { return &queryResolver{r} }
|
|
|
|
|
|
|
|
type queryResolver struct{ *Resolver }
|