vtex-apps / store-graphql

GraphQL schema and resolvers for the VTEX Commerce Stores API
78 stars 45 forks source link

Fix: Save Address Mutation #655

Closed beatrizmaselli closed 1 year ago

beatrizmaselli commented 1 year ago

What problem is this solving?

Mutation was breaking for addressId null:

image

It should save the Address:

image

How to test it?

Use the saveAddress mutation passing a body like:

{
  "address": {
    "city": "TESTE",
    "addressName": "TESTE",
    "country": "BRA",
    "addressType": "residential",
    "complement": "",
    "number": "10",
    "geoCoordinates": [
      -49.34089660644531,
      -25.471193313598633
    ],
    "neighborhood": "TESTE",
    "postalCode": "22222222",
    "receiverName": "TESTE",
    "state": "RJ",
    "street": "TESTE",
    "reference": ""
  }
}

After change:

image
vtex-io-ci-cd[bot] commented 1 year ago

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

vtex-io-docs-bot[bot] commented 1 year ago

Beep boop :robot:

I noticed you didn't make any changes at the docs/ folder

In order to keep track, I'll create an issue if you decide now is not a good time

vtex-io-ci-cd[bot] commented 1 year ago

Your PR has been merged! App is being published. :rocket: Version 2.166.0 → 2.166.1

After the publishing process has been completed (check #vtex-io-releases) and doing A/B tests with the new version, you can deploy your release by running:

vtex deploy vtex.store-graphql@2.166.1

After that your app will be updated on all accounts.

For more information on the deployment process check the docs. :book: