Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using Apple Pay or their credit card.
MIT License
452
stars
199
forks
source link
address mutation fetching old address that i recently deleted #1040
i am using this mutation for creating the address.
static func mutationForCreateAddress(address1: String, address2: String, city: String, company: String, country: String, firstName: String, lastName: String, phone: String, province: String, zip: String, token: String) -> Storefront.MutationQuery {
the address created successfully
and i am deleting the address using this mutation
static func mutationForDeleteAddress(addressID: String, accessToken: String) -> Storefront.MutationQuery {
but when i refetch the address of the customer using this:
static func queryForGetCustomerAddresses(accessToken: String) -> Storefront.QueryRootQuery { return Storefront.buildQuery { $0 .customer(customerAccessToken: accessToken) { $0 .addresses(first: 50) { $0 .edges { $0 .node { $0 .id() .address1() .address2() .city() .company() .country() .firstName() .lastName() .name() .phone() .province() .provinceCode() .zip() } } } } } }
it returns me old addresses as well that i deleted recently.
but when i delete and reinstall the app, correct data is fetched. i don't know where i am going wrong