StaplePuck / StaplePuck.Frontend.Main.React

Main components of the frontend; home page, login page, admin page, etc.
0 stars 0 forks source link

Edit User Information #1

Open nickhetland opened 5 years ago

nickhetland commented 5 years ago

When the user logs in and the following query comes back null: query QueryName { currentUser { id name } }

Then the user should be redirected to fill in email and handle by using the following mutation to update the data: mutation ($user: UserInput!){ updateUser(user: $user) { id success message } }

Variable: "user": { "email": "emailaddress", "name": "handle" }

jdistel83 commented 5 years ago

Update the User Profile page with a form to update/create a username(handle). That form will use the mutation above to update the users information in the database.

jdistel83 commented 5 years ago

https://github.com/wittydeveloper/react-apollo-form/wiki/Getting-started:-build-a-GraphQL-Form-in-5-minutes