Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add addAccountEmailRecord mutation and corresponding integration #5813

Merged
merged 6 commits into from
Nov 20, 2019

Conversation

willopez
Copy link
Member

@willopez willopez commented Nov 19, 2019

Resolves #5643
Impact: minor
Type: feature

Issue

There was no GraphQL mutation to add an email to a user's account

Solution

Add addAccountEmailRecord mutation and corresponding integration test.

mutation {
  addAccountEmailRecord(input: {
    accountId: "cmVhY3Rpb24vYWNjb3VudDpOR242R1I4TDdEZlduZkdDaA==",
    email: "[email protected]"
  }){
    account {
      emailRecords {
        address
        provides
        verified
      }
    }
  }
}

Testing

  1. Add a new email to an existing account by executing the mutation above
  2. Verify new email was added correctly

@willopez willopez requested a review from mikemurray November 20, 2019 00:56
@willopez
Copy link
Member Author

@mikemurray ready for another review

Copy link
Member

@mikemurray mikemurray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mikemurray mikemurray merged commit 389fca5 into release-3.0.0 Nov 20, 2019
@mikemurray mikemurray deleted the feat-add-email-account-integration-test branch November 20, 2019 17:08
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.

2 participants