Skip to content

Reset Password Union Introduction - #1778

Merged
nsdeschenes merged 8 commits into
masterfrom
api-create-reset-password-union
Mar 5, 2021
Merged

Reset Password Union Introduction#1778
nsdeschenes merged 8 commits into
masterfrom
api-create-reset-password-union

Conversation

@nsdeschenes

Copy link
Copy Markdown
Contributor

Once again, creating a new union type to better handle non-server side errors, and return a meaningful response to the front end.

mutation {
  resetPassword(input: { password: "", confirmPassword: "", resetToken: "" }) {
    result {
      ... on ResetPasswordError {
        code
        description
      }
      ... on ResetPasswordResult {
        status
      }
    }
  }
}

@nsdeschenes
nsdeschenes merged commit bc4900a into master Mar 5, 2021
@nsdeschenes
nsdeschenes deleted the api-create-reset-password-union branch March 5, 2021 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants