-
-
Save jackwiy/32af1294858afe910352f6827dc9fb2c to your computer and use it in GitHub Desktop.
Free countries list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const resp = await fetch('https://atlas.shopifysvc.com/graphql', { | |
| method: 'POST', | |
| body: JSON.stringify({ | |
| query: `query countries($locale: SupportedLocale!) { | |
| countries(locale: $locale) { | |
| name | |
| code | |
| provinces { | |
| code | |
| name | |
| } | |
| } | |
| }`, | |
| variables: { | |
| locale: 'IT', | |
| }, | |
| }), | |
| headers: { | |
| 'content-type': 'application/json', | |
| }, | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment