From 3202a70bed757ea6c2b2256a14a637e79b318330 Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Tue, 4 Oct 2022 17:30:17 +0300 Subject: [PATCH] schema-fix --- resolvers/auth.py | 2 +- schema.graphql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resolvers/auth.py b/resolvers/auth.py index 73ad4f14..eabd6479 100644 --- a/resolvers/auth.py +++ b/resolvers/auth.py @@ -112,7 +112,7 @@ async def register(_, _info, email: str, password: str = "", username: str = "") if not password: user = await auth_send_link(_, _info, email) - return user + return {"user": user} @mutation.field("sendLink") diff --git a/schema.graphql b/schema.graphql index d882b7c2..863d20e6 100644 --- a/schema.graphql +++ b/schema.graphql @@ -154,7 +154,7 @@ type Mutation { # auth refreshSession: AuthResult! - registerUser(email: String!, password: String, username: String): User! + registerUser(email: String!, password: String, username: String): AuthResult! sendLink(email: String!): Result! confirmEmail(code: String!): AuthResult!