From af6ab4d470fe8916135de19efa228d609b9d00ba Mon Sep 17 00:00:00 2001 From: Hannes Heine Date: Mon, 9 Aug 2021 10:19:03 +0200 Subject: [PATCH] GraphQL Query to create a new user. --- frontend/src/graphql/queries.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/graphql/queries.js b/frontend/src/graphql/queries.js index 2eaa7eb56..5ecb1ad09 100644 --- a/frontend/src/graphql/queries.js +++ b/frontend/src/graphql/queries.js @@ -94,3 +94,9 @@ export const transactionsQuery = gql` } } ` + +export const resgisterUserQuery = gql` + query($firstName: String!, $lastName: String!, $email: String!, $password: String!) { + create(email: $email, firstName: $firstName, lastName: $lastName, password: $password) + } +`