aV
05/04/2023, 4:53 PMApp.POST(graphqlPath, graphqlHandler(r.GS), auth.VerifySession(nil))
But now I want to allow anonymous users to access the graphql endpoint. I would like to check for user in the resolver function instead:
// CreateAccount is the resolver for the createAccount field.
func (r *mutationResolver) CreateAccount(ctx context.Context, input ent.CreateAccountInput) (*ent.Account, error) {
// TODO: extract userID from ctx
any suggestions?rp
05/04/2023, 6:25 PMaV
05/05/2023, 10:52 AM