Solved

creating a customer doesn't initialize their address.

AbdallahAbis
Tourist
5 1 0

I'm working on a Gatsby/Shopify site with authentication functionality, I've used the storefront API mutations for register/login/reset_password, and also I allow customers to update their info.

 

The issue I'm facing is that in order to update an address you need the address's Id, and when you create a customer using customerCreate mutation the address and default address are null, so you will never be able to update them because you don't have their ids.

 

Is there a way I can update a customer's address without the address id, by using a customer accessToken or id?

Accepted Solution (1)

AbdallahAbis
Tourist
5 1 0

This is an accepted solution.

I just noticed that there's a

customerAddressCreate mutation

View solution in original post

Reply 1 (1)

AbdallahAbis
Tourist
5 1 0

This is an accepted solution.

I just noticed that there's a

customerAddressCreate mutation