Folder structure | Making changes | Adding new queries
Each folder is prefixed with a sort key.
Folder names are all lowercase, separated with underscores.
Each query is contained in a folder. Queries are named query.graphql
. If a query requires variables, those are added with a file named variables.json
which is placed in the query folder.
When changes are pushed to the examples
directory on any branch, a new Insomnia package will be built automatically and commited to the repo in the builds
dir. The filename is storefront-api-learning-kit-insomnia.json
- Clone the repo
- Make changes on a new branch
- Push changes to the repo
- Check your changes by importing the
examples/storefront-api-learning-kit-insomnia.json
file from your branch into the Insomnia app. - Create PR and tag @Shopify/developer-support for review
When adding new queries to the collection, create folders according to the structure mentioned above. New queries should be added to the bottom of the existing sort order, unless the function is something that should logically happen first (obtaining token, a get before an update, etc)