25 lines
837 B
Go
25 lines
837 B
Go
package resolvers
|
|
|
|
// 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.73
|
|
|
|
import (
|
|
"context"
|
|
|
|
"git.farahty.com/nimer/go-mongo/generated"
|
|
"git.farahty.com/nimer/go-mongo/models"
|
|
authService "git.farahty.com/nimer/go-mongo/services/auth"
|
|
)
|
|
|
|
// Login is the resolver for the login field.
|
|
func (r *mutationResolver) Login(ctx context.Context, input models.LoginInput) (*models.LoginResponse, error) {
|
|
|
|
return authService.Login(ctx, &input)
|
|
}
|
|
|
|
// Mutation returns generated.MutationResolver implementation.
|
|
func (r *Resolver) Mutation() generated.MutationResolver { return &mutationResolver{r} }
|
|
|
|
type mutationResolver struct{ *Resolver }
|