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

Create user is not persiting the profile #98

Closed
claudiocro opened this issue Sep 26, 2019 · 1 comment
Closed

Create user is not persiting the profile #98

claudiocro opened this issue Sep 26, 2019 · 1 comment

Comments

@claudiocro
Copy link
Contributor

Take this mutation:

mutation CreateUser($profile: ShopUserProfileInput) {
  createUser(email: "cro+3@panter.ch", plainPassword: "asdf", profile: $profile) {
    id
    token
    tokenExpires
  }
}

with this variables:

"profile":{
    "phoneMobile":"786981729",
    "address": {
      "lastName":"Romano",
      "firstName":"Claudio",
      "company":"compa",
      "addressLine":"Steinhaldestrasse 52",
      "postalCode":"8002",
      "city":"Zürich",
      "countryCode":"Schweiz"
    }
  }
}

If you query:

{
  me {
    _id
    profile {
      gender
      birthday
      address {
        firstName
        lastName
        company
        addressLine
        postalCode
        countryCode
        regionCode
        city
      }
    }
  }
}

The profile is empty

@pozylon
Copy link
Member

pozylon commented Sep 27, 2019

Thanks, fixed in dc25fe3

@pozylon pozylon closed this as completed Sep 27, 2019
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

No branches or pull requests

2 participants