A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I've been moving over all our trade applications to B2B in Shopify using GQL, but hundreds have invalid or blank phone numbers when trying to create company contacts through GQL. Phone numbers are not validated when creating a customer through Shopify, so is there a way to skip this validation when using GQL? This is leading to hour of manual work to fix these one by one. Thanks in advance!
Is not the answer for your specific question, but it might be a valid response:
Instead of cleaning invalid or blank numbers ensure that you receive the actual phone number. You can use this very simple service (whatsauth.com). Copy and paste the JS and you'll receive only verified numbers.
You can follow this docs https://docs.whatsauth.com/guides/web-installation/shopify-install.html if you don't know how to add custom js to your site/page.
I hope it helps