Shopify / graphql-js-schema

Transforms the JSON representation of a GraphQL schema into a set of ES6 type modules
MIT License
35 stars 12 forks source link

schema.json #37

Open ishahrier opened 4 years ago

ishahrier commented 4 years ago

Hi where can i get the schema.json ? I tried this https://dev-3-store.myshopify.com/admin/api/2020-07/graphql/schema.json

nothing gets returned.. :-(

deldrid1 commented 4 years ago

This shouldn't be this complicated and should be clearly explained in the README for us GraphQL noobs... Here is what I ended up doing:

  1. Get your OAuth token for your shop - you can't get the schema without Authorization
  2. Run these nasty bash scripts to get the schema (shamelessly stolen from https://gist.github.com/martinheld/9fe32b7e2c8fd932599d36e921a2a825)
# This creates a file to be used by curl to inspect the GraphQL API
cat >./introspection_query.json <<EOL
{ 
  "query": "query IntrospectionQuery {
      __schema {
        queryType { name }
        mutationType { name }
        subscriptionType { name }
        types {
          ...FullType
        }
        directives {
          name
          description
          locations
          args {
            ...InputValue
          }
        }
      }
    }

    fragment FullType on __Type {
      kind
      name
      description
      fields(includeDeprecated: true) {
        name
        description
        args {
          ...InputValue
        }
        type {
          ...TypeRef
        }
        isDeprecated
        deprecationReason
      }
      inputFields {
        ...InputValue
      }
      interfaces {
        ...TypeRef
      }
      enumValues(includeDeprecated: true) {
        name
        description
        isDeprecated
        deprecationReason
      }
      possibleTypes {
        ...TypeRef
      }
    }

    fragment InputValue on __InputValue {
      name
      description
      type { ...TypeRef }
      defaultValue
    }

    fragment TypeRef on __Type {
      kind
      name
      ofType {
        kind
        name
        ofType {
          kind
          name
          ofType {
            kind
            name
            ofType {
              kind
              name
              ofType {
                kind
                name
                ofType {
                  kind
                  name
                  ofType {
                    kind
                    name
                  }
                }
              }
            }
          }
        }
      }
    }"
}
EOL
# You need to update the SHOP, and TOKEN parameters
curl --request POST \
  --url https://{SHOP}.myshopify.com/admin/api/graphql.json \
  --header 'Content-Type: application/json' \
  --header 'X-Shopify-Access-Token: {TOKEN}' \
  -d @introspection_query.json \
  > schema.json

Finally, run the command in the README:

graphql-js-schema --schema-file ./schema.json --outdir schema --schema-bundle-name="Types"

Viola! You have types!

wroteFile: schema/types/access-scope.js
wroteFile: schema/types/api-version.js
wroteFile: schema/types/app-credit.js
wroteFile: schema/types/app-credit-connection.js
wroteFile: schema/types/app-credit-edge.js
wroteFile: schema/types/app-credit-create-payload.js
wroteFile: schema/types/app-feedback.js
wroteFile: schema/types/app-edge.js
wroteFile: schema/types/app-installation.js
wroteFile: schema/types/app-installation-category.js
wroteFile: schema/types/app-installation-edge.js
wroteFile: schema/types/app-plan-input.js
wroteFile: schema/types/app-installation-connection.js
wroteFile: schema/types/app-installation-sort-keys.js
wroteFile: schema/types/app-plan-v-2.js
wroteFile: schema/types/app-pricing-details.js
wroteFile: schema/types/app-installation-privacy.js
wroteFile: schema/types/app-purchase.js
wroteFile: schema/types/app-connection.js
wroteFile: schema/types/app-pricing-interval.js
wroteFile: schema/types/app-purchase-one-time-connection.js
wroteFile: schema/types/app-purchase-one-time-create-payload.js
wroteFile: schema/types/app-purchase-status.js
wroteFile: schema/types/app-purchase-one-time-edge.js
wroteFile: schema/types/app-subscription.js
wroteFile: schema/types/app.js
wroteFile: schema/types/app-subscription-cancel-payload.js
wroteFile: schema/types/app-recurring-pricing-input.js
wroteFile: schema/types/app-subscription-connection.js
wroteFile: schema/types/app-subscription-edge.js
wroteFile: schema/types/app-subscription-create-payload.js
wroteFile: schema/types/app-subscription-line-item.js
wroteFile: schema/types/app-subscription-line-item-update-payload.js
wroteFile: schema/types/app-subscription-status.js
wroteFile: schema/types/app-subscription-sort-keys.js
wroteFile: schema/types/app-usage-pricing-input.js
wroteFile: schema/types/app-subscription-line-item-input.js
wroteFile: schema/types/app-usage-pricing.js
wroteFile: schema/types/app-transaction-sort-keys.js
wroteFile: schema/types/app-usage-record-sort-keys.js
wroteFile: schema/types/app-usage-record-create-payload.js
wroteFile: schema/types/app-usage-record.js
wroteFile: schema/types/app-usage-record-connection.js
wroteFile: schema/types/app-usage-record-edge.js
wroteFile: schema/types/attribute-input.js
wroteFile: schema/types/attribute.js
wroteFile: schema/types/automatic-discount-sort-keys.js
wroteFile: schema/types/basic-event.js
wroteFile: schema/types/automatic-discount-application.js
wroteFile: schema/types/boolean.js
wroteFile: schema/types/bulk-operation-cancel-payload.js
wroteFile: schema/types/bulk-operation.js
wroteFile: schema/types/bulk-operation-run-query-payload.js
wroteFile: schema/types/bulk-operation-error-code.js
wroteFile: schema/types/calculated-draft-order.js
wroteFile: schema/types/calculated-line-item-connection.js
wroteFile: schema/types/bulk-operation-status.js
wroteFile: schema/types/calculated-draft-order-line-item.js
wroteFile: schema/types/calculated-line-item.js
wroteFile: schema/types/calculated-order.js
wroteFile: schema/types/channel.js
wroteFile: schema/types/channel-edge.js
wroteFile: schema/types/calculated-line-item-edge.js
wroteFile: schema/types/code-discount-sort-keys.js
wroteFile: schema/types/channel-connection.js
wroteFile: schema/types/collection.js
wroteFile: schema/types/collection-add-products-payload.js
wroteFile: schema/types/collection-create-payload.js
wroteFile: schema/types/collection-delete-payload.js
wroteFile: schema/types/collection-delete-input.js
wroteFile: schema/types/app-purchase-one-time.js
wroteFile: schema/types/collection-input.js
wroteFile: schema/types/collection-connection.js
wroteFile: schema/types/collection-publication-input.js
wroteFile: schema/types/all-discount-items.js
wroteFile: schema/types/collection-publication.js
wroteFile: schema/types/collection-publication-edge.js
wroteFile: schema/types/collection-publication-connection.js
wroteFile: schema/types/collection-publish-payload.js
wroteFile: schema/types/collection-remove-products-payload.js
wroteFile: schema/types/collection-rule.js
wroteFile: schema/types/collection-rule-column.js
wroteFile: schema/types/collection-reorder-products-payload.js
wroteFile: schema/types/collection-rule-conditions.js
wroteFile: schema/types/collection-rule-input.js
wroteFile: schema/types/collection-rule-relation.js
wroteFile: schema/types/collection-rule-set.js
wroteFile: schema/types/collection-rule-set-input.js
wroteFile: schema/types/collection-sort-keys.js
wroteFile: schema/types/collection-unpublish-input.js
wroteFile: schema/types/collection-unpublish-payload.js
wroteFile: schema/types/collection-sort-order.js
wroteFile: schema/types/comment-event-attachment.js
wroteFile: schema/types/comment-event.js
wroteFile: schema/types/comment-event-embed.js
wroteFile: schema/types/collection-update-payload.js
wroteFile: schema/types/country-code.js
wroteFile: schema/types/comment-event-subject.js
wroteFile: schema/types/countries-in-shipping-zones.js
wroteFile: schema/types/country-harmonized-system-code-connection.js
wroteFile: schema/types/country-harmonized-system-code.js
wroteFile: schema/types/app-recurring-pricing.js
wroteFile: schema/types/create-media-input.js
wroteFile: schema/types/country-harmonized-system-code-input.js
wroteFile: schema/types/crop-region.js
wroteFile: schema/types/currency-formats.js
wroteFile: schema/types/currency-code.js
wroteFile: schema/types/currency-setting-connection.js
wroteFile: schema/types/currency-setting.js
wroteFile: schema/types/customer-add-tax-exemptions-payload.js
wroteFile: schema/types/customer.js
wroteFile: schema/types/customer-connection.js
wroteFile: schema/types/currency-setting-edge.js
wroteFile: schema/types/customer-create-payload.js
wroteFile: schema/types/customer-delete-input.js
wroteFile: schema/types/collection-edge.js
wroteFile: schema/types/country-harmonized-system-code-edge.js
wroteFile: schema/types/collection-publish-input.js
wroteFile: schema/types/customer-edge.js
wroteFile: schema/types/customer-input.js
wroteFile: schema/types/customer-journey.js
wroteFile: schema/types/customer-delete-payload.js
wroteFile: schema/types/customer-marketing-opt-in-level.js
wroteFile: schema/types/customer-saved-search-sort-keys.js
wroteFile: schema/types/customer-replace-tax-exemptions-payload.js
wroteFile: schema/types/customer-moment.js
wroteFile: schema/types/customer-remove-tax-exemptions-payload.js
wroteFile: schema/types/day-of-the-week.js
wroteFile: schema/types/customer-state.js
wroteFile: schema/types/customer-sort-keys.js
wroteFile: schema/types/date-time.js
wroteFile: schema/types/customer-visit.js
wroteFile: schema/types/customer-update-default-address-payload.js
wroteFile: schema/types/customer-update-payload.js
wroteFile: schema/types/deletion-event-connection.js
wroteFile: schema/types/deletion-event.js
wroteFile: schema/types/delivery-available-service.js
wroteFile: schema/types/date.js
wroteFile: schema/types/decimal.js
wroteFile: schema/types/deletion-event-subject-type.js
wroteFile: schema/types/delivery-carrier-service.js
wroteFile: schema/types/deletion-event-edge.js
wroteFile: schema/types/delivery-carrier-service-and-locations.js
wroteFile: schema/types/delivery-condition-criteria.js
wroteFile: schema/types/deletion-event-sort-keys.js
wroteFile: schema/types/delivery-condition.js
wroteFile: schema/types/delivery-condition-field.js
wroteFile: schema/types/delivery-country-code-or-rest-of-world.js
wroteFile: schema/types/delivery-country.js
wroteFile: schema/types/delivery-condition-operator.js
wroteFile: schema/types/delivery-country-input.js
wroteFile: schema/types/delivery-country-and-zone.js
wroteFile: schema/types/delivery-legacy-mode-blocked-reason.js
wroteFile: schema/types/delivery-country-codes-or-rest-of-world.js
wroteFile: schema/types/delivery-location-group.js
wroteFile: schema/types/delivery-legacy-mode-blocked.js
wroteFile: schema/types/delivery-location-group-zone-connection.js
wroteFile: schema/types/delivery-location-group-zone.js
wroteFile: schema/types/delivery-location-group-zone-edge.js
wroteFile: schema/types/delivery-location-group-zone-input.js
wroteFile: schema/types/delivery-method-definition-edge.js
wroteFile: schema/types/delivery-method-definition.js
wroteFile: schema/types/delivery-method-definition-connection.js
wroteFile: schema/types/delivery-method-definition-input.js
wroteFile: schema/types/delivery-participant.js
wroteFile: schema/types/delivery-participant-input.js
wroteFile: schema/types/delivery-participant-service.js
wroteFile: schema/types/delivery-participant-service-input.js
wroteFile: schema/types/delivery-profile.js
wroteFile: schema/types/delivery-product-variants-count.js
wroteFile: schema/types/delivery-price-condition-input.js
wroteFile: schema/types/delivery-profile-input.js
wroteFile: schema/types/delivery-profile-edge.js
wroteFile: schema/types/delivery-profile-connection.js
wroteFile: schema/types/delivery-profile-item.js
wroteFile: schema/types/delivery-profile-location-group-input.js
wroteFile: schema/types/delivery-province.js
wroteFile: schema/types/delivery-province-input.js
wroteFile: schema/types/delivery-rate-definition-input.js
wroteFile: schema/types/delivery-profile-item-edge.js
wroteFile: schema/types/delivery-profile-location-group.js
wroteFile: schema/types/delivery-profile-item-connection.js
wroteFile: schema/types/delivery-rate-definition.js
wroteFile: schema/types/delivery-rate-provider.js
wroteFile: schema/types/delivery-setting.js
wroteFile: schema/types/delivery-shipping-origin-assign-payload.js
wroteFile: schema/types/delivery-setting-update-payload.js
wroteFile: schema/types/delivery-setting-input.js
wroteFile: schema/types/delivery-update-condition-input.js
wroteFile: schema/types/delivery-weight-condition-input.js
wroteFile: schema/types/discount-allocation.js
wroteFile: schema/types/discount-amount-input.js
wroteFile: schema/types/discount-amount.js
wroteFile: schema/types/delivery-zone.js
wroteFile: schema/types/discount-application.js
wroteFile: schema/types/discount-application-allocation-method.js
wroteFile: schema/types/discount-application-connection.js
wroteFile: schema/types/digital-wallet.js
wroteFile: schema/types/discount-application-edge.js
wroteFile: schema/types/discount-application-target-selection.js
wroteFile: schema/types/discount-automatic-basic-create-payload.js
wroteFile: schema/types/discount-application-target-type.js
wroteFile: schema/types/discount-automatic-bxgy.js
wroteFile: schema/types/discount-automatic-bulk-delete-payload.js
wroteFile: schema/types/discount-automatic-basic-update-payload.js
wroteFile: schema/types/discount-automatic-activate-payload.js
wroteFile: schema/types/discount-automatic-bxgy-input.js
wroteFile: schema/types/discount-automatic-basic.js
wroteFile: schema/types/discount-automatic-bxgy-create-payload.js
wroteFile: schema/types/discount-automatic.js
wroteFile: schema/types/discount-automatic-basic-input.js
wroteFile: schema/types/discount-automatic-bxgy-update-payload.js
wroteFile: schema/types/discount-automatic-deactivate-payload.js
wroteFile: schema/types/discount-automatic-delete-payload.js
wroteFile: schema/types/discount-automatic-connection.js
wroteFile: schema/types/discount-automatic-edge.js
wroteFile: schema/types/discount-automatic-node-connection.js
wroteFile: schema/types/discount-automatic-node.js
wroteFile: schema/types/discount-automatic-node-edge.js
wroteFile: schema/types/discount-code.js
wroteFile: schema/types/discount-code-activate-payload.js
wroteFile: schema/types/discount-code-basic.js
wroteFile: schema/types/discount-code-application.js
wroteFile: schema/types/discount-code-basic-update-payload.js
wroteFile: schema/types/discount-code-basic-create-payload.js
wroteFile: schema/types/discount-code-basic-input.js
wroteFile: schema/types/discount-code-bxgy.js
wroteFile: schema/types/discount-code-bxgy-create-payload.js
wroteFile: schema/types/discount-code-bxgy-update-payload.js
wroteFile: schema/types/discount-code-free-shipping-create-payload.js
wroteFile: schema/types/discount-code-free-shipping-input.js
wroteFile: schema/types/discount-code-bxgy-input.js
wroteFile: schema/types/discount-code-free-shipping.js
wroteFile: schema/types/discount-code-node.js
wroteFile: schema/types/discount-code-deactivate-payload.js
wroteFile: schema/types/discount-code-free-shipping-update-payload.js
wroteFile: schema/types/discount-code-node-connection.js
wroteFile: schema/types/discount-code-sort-keys.js
wroteFile: schema/types/discount-countries-input.js
wroteFile: schema/types/discount-code-delete-payload.js
wroteFile: schema/types/discount-collections.js
wroteFile: schema/types/discount-collections-input.js
wroteFile: schema/types/discount-countries.js
wroteFile: schema/types/discount-code-node-edge.js
wroteFile: schema/types/discount-country-all.js
wroteFile: schema/types/discount-customer-all.js
wroteFile: schema/types/discount-customer-buys.js
wroteFile: schema/types/discount-customer-buys-value-input.js
wroteFile: schema/types/discount-customer-buys-input.js
wroteFile: schema/types/discount-customer-buys-value.js
wroteFile: schema/types/discount-customer-gets-input.js
wroteFile: schema/types/discount-customer-gets.js
wroteFile: schema/types/discount-customer-gets-value-input.js
wroteFile: schema/types/discount-customer-gets-value.js
wroteFile: schema/types/discount-customer-saved-searches-input.js
wroteFile: schema/types/discount-customer-selection-input.js
wroteFile: schema/types/discount-customer-saved-searches.js
wroteFile: schema/types/discount-customers.js
wroteFile: schema/types/discount-effect-input.js
wroteFile: schema/types/discount-error-code.js
wroteFile: schema/types/discount-items.js
wroteFile: schema/types/discount-customers-input.js
wroteFile: schema/types/discount-minimum-quantity-input.js
wroteFile: schema/types/discount-effect.js
wroteFile: schema/types/discount-items-input.js
wroteFile: schema/types/discount-customer-selection.js
wroteFile: schema/types/discount-minimum-quantity.js
wroteFile: schema/types/discount-minimum-requirement.js
wroteFile: schema/types/discount-minimum-subtotal-input.js
wroteFile: schema/types/discount-minimum-requirement-input.js
wroteFile: schema/types/discount-minimum-subtotal.js
wroteFile: schema/types/discount-on-quantity.js
wroteFile: schema/types/discount-percentage.js
wroteFile: schema/types/discount-purchase-amount.js
wroteFile: schema/types/discount-on-quantity-input.js
wroteFile: schema/types/discount-products.js
wroteFile: schema/types/discount-products-input.js
wroteFile: schema/types/discount-quantity.js
wroteFile: schema/types/discount-redeem-code.js
wroteFile: schema/types/discount-redeem-code-connection.js
wroteFile: schema/types/discount-user-error.js
wroteFile: schema/types/discount-shipping-destination-selection-input.js
wroteFile: schema/types/discount-redeem-code-edge.js
wroteFile: schema/types/discount-status.js
wroteFile: schema/types/discount-shipping-destination-selection.js
wroteFile: schema/types/displayable-error.js
wroteFile: schema/types/dispute-status.js
wroteFile: schema/types/dispute-type.js
wroteFile: schema/types/draft-fulfillment.js
wroteFile: schema/types/domain.js
wroteFile: schema/types/draft-order-applied-discount-input.js
wroteFile: schema/types/draft-order-applied-discount.js
wroteFile: schema/types/draft-order.js
wroteFile: schema/types/draft-order-calculate-payload.js
wroteFile: schema/types/draft-order-complete-payload.js
wroteFile: schema/types/draft-order-applied-discount-type.js
wroteFile: schema/types/draft-order-connection.js
wroteFile: schema/types/draft-order-delete-input.js
wroteFile: schema/types/draft-order-create-payload.js
wroteFile: schema/types/draft-order-delete-payload.js
wroteFile: schema/types/draft-order-edge.js
wroteFile: schema/types/draft-order-input.js
wroteFile: schema/types/draft-order-line-item.js
wroteFile: schema/types/draft-order-invoice-preview-payload.js
wroteFile: schema/types/draft-order-invoice-send-payload.js
wroteFile: schema/types/draft-order-line-item-input.js
wroteFile: schema/types/draft-order-line-item-edge.js
wroteFile: schema/types/draft-order-line-item-connection.js
wroteFile: schema/types/draft-order-sort-keys.js
wroteFile: schema/types/draft-order-update-payload.js
wroteFile: schema/types/draft-order-status.js
wroteFile: schema/types/editable-property.js
wroteFile: schema/types/email-input.js
wroteFile: schema/types/event.js
wroteFile: schema/types/event-edge.js
wroteFile: schema/types/event-connection.js
wroteFile: schema/types/flow-trigger-receive-payload.js
wroteFile: schema/types/failed-requirement.js
wroteFile: schema/types/filter-option.js
wroteFile: schema/types/fulfillment.js
wroteFile: schema/types/fulfillment-cancel-payload.js
wroteFile: schema/types/formatted-string.js
wroteFile: schema/types/fulfillment-connection.js
wroteFile: schema/types/event-sort-keys.js
wroteFile: schema/types/external-video.js
wroteFile: schema/types/float.js
wroteFile: schema/types/fulfillment-create-v-2-payload.js
wroteFile: schema/types/fulfillment-create-payload.js
wroteFile: schema/types/fulfillment-edge.js
wroteFile: schema/types/fulfillment-display-status.js
wroteFile: schema/types/fulfillment-event.js
wroteFile: schema/types/fulfillment-event-edge.js
wroteFile: schema/types/fulfillment-event-connection.js
wroteFile: schema/types/fulfillment-event-status.js
wroteFile: schema/types/fulfillment-event-sort-keys.js
wroteFile: schema/types/fulfillment-line-item.js
wroteFile: schema/types/fulfillment-line-item-edge.js
wroteFile: schema/types/fulfillment-input.js
wroteFile: schema/types/fulfillment-line-item-connection.js
wroteFile: schema/types/fulfillment-order-accept-cancellation-request-payload.js
wroteFile: schema/types/fulfillment-line-item-input.js
wroteFile: schema/types/fulfillment-order.js
wroteFile: schema/types/fulfillment-order-action.js
wroteFile: schema/types/fulfillment-order-accept-fulfillment-request-payload.js
wroteFile: schema/types/fulfillment-order-assigned-location.js
wroteFile: schema/types/fulfillment-order-assignment-status.js
wroteFile: schema/types/fulfillment-order-cancel-payload.js
wroteFile: schema/types/fulfillment-order-destination.js
wroteFile: schema/types/fulfillment-order-connection.js
wroteFile: schema/types/fulfillment-order-close-payload.js
wroteFile: schema/types/fulfillment-order-line-item-edge.js
wroteFile: schema/types/fulfillment-order-line-item-input.js
wroteFile: schema/types/fulfillment-order-edge.js
wroteFile: schema/types/fulfillment-order-line-item.js
wroteFile: schema/types/fulfillment-order-location-for-move.js
wroteFile: schema/types/fulfillment-order-line-items-input.js
wroteFile: schema/types/fulfillment-order-line-item-connection.js
wroteFile: schema/types/fulfillment-order-merchant-request-connection.js
wroteFile: schema/types/fulfillment-order-merchant-request-kind.js
wroteFile: schema/types/fulfillment-order-location-for-move-connection.js
wroteFile: schema/types/fulfillment-order-merchant-request-edge.js
wroteFile: schema/types/fulfillment-order-location-for-move-edge.js
wroteFile: schema/types/fulfillment-order-sort-keys.js
wroteFile: schema/types/fulfillment-order-move-payload.js
wroteFile: schema/types/fulfillment-order-merchant-request.js
wroteFile: schema/types/fulfillment-order-reject-cancellation-request-payload.js
wroteFile: schema/types/fulfillment-order-submit-fulfillment-request-payload.js
wroteFile: schema/types/fulfillment-order-submit-cancellation-request-payload.js
wroteFile: schema/types/fulfillment-order-request-status.js
wroteFile: schema/types/fulfillment-order-status.js
wroteFile: schema/types/fulfillment-service-type.js
wroteFile: schema/types/fulfillment-service-create-payload.js
wroteFile: schema/types/fulfillment-order-reject-fulfillment-request-payload.js
wroteFile: schema/types/fulfillment-order-supported-action.js
wroteFile: schema/types/fulfillment-service-delete-payload.js
wroteFile: schema/types/fulfillment-service.js
wroteFile: schema/types/fulfillment-service-update-payload.js
wroteFile: schema/types/fulfillment-tracking-info.js
wroteFile: schema/types/fulfillment-status.js
wroteFile: schema/types/fulfillment-tracking-info-update-payload.js
wroteFile: schema/types/fulfillment-tracking-info-update-v-2-payload.js
wroteFile: schema/types/fulfillment-v-2-input.js
wroteFile: schema/types/fulfillment-tracking-input.js
wroteFile: schema/types/has-published-translations.js
wroteFile: schema/types/has-metafields.js
wroteFile: schema/types/image-edge.js
wroteFile: schema/types/image-content-type.js
wroteFile: schema/types/has-events.js
wroteFile: schema/types/id.js
wroteFile: schema/types/html.js
wroteFile: schema/types/image-connection.js
wroteFile: schema/types/int.js
wroteFile: schema/types/image-input.js
wroteFile: schema/types/image.js
wroteFile: schema/types/image-upload-parameter.js
wroteFile: schema/types/inventory-activate-payload.js
wroteFile: schema/types/inventory-adjust-item-input.js
wroteFile: schema/types/inventory-deactivate-payload.js
wroteFile: schema/types/inventory-item.js
wroteFile: schema/types/inventory-item-input.js
wroteFile: schema/types/inventory-adjust-quantity-payload.js
wroteFile: schema/types/inventory-item-edge.js
wroteFile: schema/types/inventory-adjust-quantity-input.js
wroteFile: schema/types/inventory-item-update-input.js
wroteFile: schema/types/inventory-level-connection.js
wroteFile: schema/types/inventory-bulk-adjust-quantity-at-location-payload.js
wroteFile: schema/types/inventory-item-connection.js
wroteFile: schema/types/inventory-level.js
wroteFile: schema/types/inventory-level-edge.js
wroteFile: schema/types/inventory-item-update-payload.js
wroteFile: schema/types/inventory-level-input.js
wroteFile: schema/types/json.js
wroteFile: schema/types/kit-skill-trigger-request-payload.js
wroteFile: schema/types/legacy-interoperability.js
wroteFile: schema/types/line-item.js
wroteFile: schema/types/job.js
wroteFile: schema/types/kit-skill-locale.js
wroteFile: schema/types/limited-pending-order-count.js
wroteFile: schema/types/line-item-mutable.js
wroteFile: schema/types/line-item-edge.js
wroteFile: schema/types/line-item-connection.js
wroteFile: schema/types/line-item-mutable-edge.js
wroteFile: schema/types/link.js
wroteFile: schema/types/line-item-mutable-connection.js
wroteFile: schema/types/location-edge.js
wroteFile: schema/types/location-connection.js
wroteFile: schema/types/locale.js
wroteFile: schema/types/location-address.js
wroteFile: schema/types/location.js
wroteFile: schema/types/location-sort-keys.js
wroteFile: schema/types/mailing-address-input.js
wroteFile: schema/types/location-suggested-address.js
wroteFile: schema/types/mailing-address.js
wroteFile: schema/types/marketing-activity-extension-app-error-code.js
wroteFile: schema/types/manual-discount-application.js
wroteFile: schema/types/marketing-activity.js
wroteFile: schema/types/marketing-activity-extension-app-errors.js
wroteFile: schema/types/marketing-activity-update-payload.js
wroteFile: schema/types/marketing-activity-status.js
wroteFile: schema/types/marketing-activity-sort-keys.js
wroteFile: schema/types/marketing-activity-update-input.js
wroteFile: schema/types/marketing-budget.js
wroteFile: schema/types/marketing-channel.js
wroteFile: schema/types/marketing-budget-budget-type.js
wroteFile: schema/types/marketing-engagement-input.js
wroteFile: schema/types/marketing-engagement-create-payload.js
wroteFile: schema/types/marketing-engagement.js
wroteFile: schema/types/marketing-event.js
wroteFile: schema/types/marketing-event-edge.js
wroteFile: schema/types/marketing-tactic.js
wroteFile: schema/types/marketing-activity-connection.js
wroteFile: schema/types/marketing-event-sort-keys.js
wroteFile: schema/types/media.js
wroteFile: schema/types/media-connection.js
wroteFile: schema/types/media-content-type.js
wroteFile: schema/types/marketing-activity-edge.js
wroteFile: schema/types/marketing-event-connection.js
wroteFile: schema/types/media-preview-image.js
wroteFile: schema/types/marketing-activity-budget-input.js
wroteFile: schema/types/media-error-code.js
wroteFile: schema/types/media-preview-image-status.js
wroteFile: schema/types/media-user-error-code.js
wroteFile: schema/types/media-image.js
wroteFile: schema/types/media-edge.js
wroteFile: schema/types/media-error.js
wroteFile: schema/types/media-status.js
wroteFile: schema/types/metafield.js
wroteFile: schema/types/media-user-error.js
wroteFile: schema/types/metafield-connection.js
wroteFile: schema/types/metafield-delete-input.js
wroteFile: schema/types/metafield-edge.js
wroteFile: schema/types/metafield-owner-type.js
wroteFile: schema/types/metafield-delete-payload.js
wroteFile: schema/types/metafield-storefront-visibility-connection.js
wroteFile: schema/types/metafield-input.js
wroteFile: schema/types/metafield-storefront-visibility-create-payload.js
wroteFile: schema/types/metafield-storefront-visibility-edge.js
wroteFile: schema/types/metafield-storefront-visibility.js
wroteFile: schema/types/metafield-storefront-visibility-input.js
wroteFile: schema/types/metafield-storefront-visibility-delete-payload.js
wroteFile: schema/types/model-3-d-source.js
wroteFile: schema/types/method-definition-sort-keys.js
wroteFile: schema/types/metafield-value-type.js
wroteFile: schema/types/model-3-d.js
wroteFile: schema/types/money-input.js
wroteFile: schema/types/money-bag.js
wroteFile: schema/types/move-input.js
wroteFile: schema/types/mutations-staged-upload-target-generate-upload-parameter.js
wroteFile: schema/types/money.js
wroteFile: schema/types/money-v-2.js
wroteFile: schema/types/node.js
wroteFile: schema/types/mutation.js
wroteFile: schema/types/navigable.js
wroteFile: schema/types/online-store-article.js
wroteFile: schema/types/navigation-item.js
wroteFile: schema/types/online-store-previewable.js
wroteFile: schema/types/online-store-blog.js
wroteFile: schema/types/online-store-page.js
wroteFile: schema/types/order-cancel-reason.js
wroteFile: schema/types/order.js
wroteFile: schema/types/order-capture-input.js
wroteFile: schema/types/order-capture-payload.js
wroteFile: schema/types/order-close-input.js
wroteFile: schema/types/order-dispute-summary.js
wroteFile: schema/types/order-connection.js
wroteFile: schema/types/order-edit-add-variant-payload.js
wroteFile: schema/types/order-close-payload.js
wroteFile: schema/types/order-display-financial-status.js
wroteFile: schema/types/order-input.js
wroteFile: schema/types/order-edit-begin-payload.js
wroteFile: schema/types/order-edit-commit-payload.js
wroteFile: schema/types/order-edit-set-quantity-payload.js
wroteFile: schema/types/order-mark-as-paid-input.js
wroteFile: schema/types/order-edit-add-custom-item-payload.js
wroteFile: schema/types/order-edge.js
wroteFile: schema/types/order-display-fulfillment-status.js
wroteFile: schema/types/order-open-payload.js
wroteFile: schema/types/order-open-input.js
wroteFile: schema/types/order-mark-as-paid-payload.js
wroteFile: schema/types/order-payment-collection-details.js
wroteFile: schema/types/order-sort-keys.js
wroteFile: schema/types/order-risk.js
wroteFile: schema/types/order-staged-change.js
wroteFile: schema/types/order-staged-change-add-variant.js
wroteFile: schema/types/order-risk-level.js
wroteFile: schema/types/order-staged-change-connection.js
wroteFile: schema/types/order-staged-change-decrement-item.js
wroteFile: schema/types/order-staged-change-add-custom-item.js
wroteFile: schema/types/order-staged-change-edge.js
wroteFile: schema/types/order-staged-change-increment-item.js
wroteFile: schema/types/order-transaction-connection.js
wroteFile: schema/types/order-transaction.js
wroteFile: schema/types/order-transaction-edge.js
wroteFile: schema/types/order-transaction-input.js
wroteFile: schema/types/order-transaction-error-code.js
wroteFile: schema/types/order-transaction-kind.js
wroteFile: schema/types/order-transaction-status.js
wroteFile: schema/types/order-update-payload.js
wroteFile: schema/types/price-reduction-input.js
wroteFile: schema/types/payment-methods.js
wroteFile: schema/types/page-info.js
wroteFile: schema/types/price-rule.js
wroteFile: schema/types/payment-settings.js
wroteFile: schema/types/price-rule-allocation-method.js
wroteFile: schema/types/price-rule-activate-payload.js
wroteFile: schema/types/price-rule-connection.js
wroteFile: schema/types/price-rule-create-payload.js
wroteFile: schema/types/price-rule-deactivate-payload.js
wroteFile: schema/types/price-rule-discount-code-create-payload.js
wroteFile: schema/types/price-rule-customer-selection.js
wroteFile: schema/types/price-rule-discount-code-connection.js
wroteFile: schema/types/price-rule-edge.js
wroteFile: schema/types/price-rule-discount-code-edge.js
wroteFile: schema/types/price-rule-discount-code-input.js
wroteFile: schema/types/price-rule-customer-selection-input.js
wroteFile: schema/types/price-rule-discount-code.js
wroteFile: schema/types/price-rule-delete-payload.js
wroteFile: schema/types/price-rule-discount-code-update-payload.js
wroteFile: schema/types/price-rule-entitlement-to-prerequisite-quantity-ratio-input.js
wroteFile: schema/types/price-rule-input.js
wroteFile: schema/types/price-rule-entitlement-to-prerequisite-quantity-ratio.js
wroteFile: schema/types/price-rule-fixed-amount-value.js
wroteFile: schema/types/price-rule-error-code.js
wroteFile: schema/types/price-rule-item-prerequisites-input.js
wroteFile: schema/types/price-rule-feature.js
wroteFile: schema/types/price-rule-item-entitlements-input.js
wroteFile: schema/types/price-rule-line-item-prerequisites.js
wroteFile: schema/types/price-rule-item-entitlements.js
wroteFile: schema/types/price-rule-percent-value.js
wroteFile: schema/types/price-rule-money-range.js
wroteFile: schema/types/price-rule-quantity-range.js
wroteFile: schema/types/price-rule-prerequisite-to-entitlement-quantity-ratio-input.js
wroteFile: schema/types/price-rule-prerequisite-to-entitlement-quantity-ratio.js
wroteFile: schema/types/price-rule-money-range-input.js
wroteFile: schema/types/price-rule-shipping-entitlements-input.js
wroteFile: schema/types/price-rule-quantity-range-input.js
wroteFile: schema/types/price-rule-shareable-url.js
wroteFile: schema/types/price-rule-shareable-url-target-type.js
wroteFile: schema/types/price-rule-shipping-line-entitlements.js
wroteFile: schema/types/price-rule-update-payload.js
wroteFile: schema/types/price-rule-status.js
wroteFile: schema/types/price-rule-trait.js
wroteFile: schema/types/price-rule-user-error.js
wroteFile: schema/types/price-rule-sort-keys.js
wroteFile: schema/types/price-rule-target.js
wroteFile: schema/types/price-rule-validity-period.js
wroteFile: schema/types/price-rule-value.js
wroteFile: schema/types/price-rule-value-input.js
wroteFile: schema/types/pricing-percentage-value.js
wroteFile: schema/types/pricing-value.js
wroteFile: schema/types/private-metafield.js
wroteFile: schema/types/price-rule-validity-period-input.js
wroteFile: schema/types/private-metafield-connection.js
wroteFile: schema/types/private-metafield-input.js
wroteFile: schema/types/private-metafield-edge.js
wroteFile: schema/types/private-metafield-delete-payload.js
wroteFile: schema/types/private-metafield-delete-input.js
wroteFile: schema/types/private-metafield-value-type.js
wroteFile: schema/types/product-bulk-add-price-reductions-payload.js
wroteFile: schema/types/private-metafield-value-input.js
wroteFile: schema/types/product-bulk-remove-price-reductions-payload.js
wroteFile: schema/types/product-connection.js
wroteFile: schema/types/product.js
wroteFile: schema/types/product-append-images-payload.js
wroteFile: schema/types/product-append-images-input.js
wroteFile: schema/types/product-create-media-payload.js
wroteFile: schema/types/product-create-payload.js
wroteFile: schema/types/private-metafield-upsert-payload.js
wroteFile: schema/types/product-collection-sort-keys.js
wroteFile: schema/types/product-delete-images-payload.js
wroteFile: schema/types/product-duplicate-payload.js
wroteFile: schema/types/product-image-update-payload.js
wroteFile: schema/types/product-delete-media-payload.js
wroteFile: schema/types/product-delete-payload.js
wroteFile: schema/types/product-delete-input.js
wroteFile: schema/types/product-edge.js
wroteFile: schema/types/product-image-sort-keys.js
wroteFile: schema/types/product-input.js
wroteFile: schema/types/product-media-sort-keys.js
wroteFile: schema/types/product-price-range.js
wroteFile: schema/types/product-publish-input.js
wroteFile: schema/types/product-publication-edge.js
wroteFile: schema/types/product-publish-payload.js
wroteFile: schema/types/product-publication-connection.js
wroteFile: schema/types/product-reorder-images-payload.js
wroteFile: schema/types/product-publication-input.js
wroteFile: schema/types/product-option.js
wroteFile: schema/types/product-reorder-media-payload.js
wroteFile: schema/types/product-publication.js
wroteFile: schema/types/product-sort-keys.js
wroteFile: schema/types/product-update-payload.js
wroteFile: schema/types/product-unpublish-payload.js
wroteFile: schema/types/product-update-media-payload.js
wroteFile: schema/types/product-unpublish-input.js
wroteFile: schema/types/product-variant.js
wroteFile: schema/types/product-variant-connection.js
wroteFile: schema/types/product-variant-create-payload.js
wroteFile: schema/types/product-variant-inventory-management.js
wroteFile: schema/types/product-variant-price-pair.js
wroteFile: schema/types/product-variant-inventory-policy.js
wroteFile: schema/types/product-variant-price-pair-connection.js
wroteFile: schema/types/product-variant-input.js
wroteFile: schema/types/product-variant-price-pair-edge.js
wroteFile: schema/types/product-variant-edge.js
wroteFile: schema/types/product-variant-delete-payload.js
wroteFile: schema/types/profile-item-sort-keys.js
wroteFile: schema/types/publication.js
wroteFile: schema/types/publication-connection.js
wroteFile: schema/types/product-variant-sort-keys.js
wroteFile: schema/types/product-variant-update-payload.js
wroteFile: schema/types/publishable-publish-payload.js
wroteFile: schema/types/publishable-publish-to-current-channel-payload.js
wroteFile: schema/types/publishable-unpublish-payload.js
wroteFile: schema/types/published-translation.js
wroteFile: schema/types/publishable.js
wroteFile: schema/types/publishable-unpublish-to-current-channel-payload.js
wroteFile: schema/types/publication-input.js
wroteFile: schema/types/publication-edge.js
wroteFile: schema/types/query-root.js
wroteFile: schema/types/refund-line-item-connection.js
wroteFile: schema/types/refund-input.js
wroteFile: schema/types/refund-create-payload.js
wroteFile: schema/types/refund.js
wroteFile: schema/types/refund-line-item.js
wroteFile: schema/types/refund-line-item-restock-type.js
wroteFile: schema/types/refund-line-item-input.js
wroteFile: schema/types/refund-line-item-edge.js
wroteFile: schema/types/refund-line-item-refund-type.js
wroteFile: schema/types/resource-alert-action.js
wroteFile: schema/types/resource-alert-icon.js
wroteFile: schema/types/resource-alert.js
wroteFile: schema/types/resource-publication-connection.js
wroteFile: schema/types/resource-publication.js
wroteFile: schema/types/resource-feedback.js
wroteFile: schema/types/resource-alert-severity.js
wroteFile: schema/types/resource-limit.js
wroteFile: schema/types/resource-publication-edge.js
wroteFile: schema/types/seo-input.js
wroteFile: schema/types/seo.js
wroteFile: schema/types/saved-search.js
wroteFile: schema/types/saved-search-connection.js
wroteFile: schema/types/saved-search-create-payload.js
wroteFile: schema/types/saved-search-create-input.js
wroteFile: schema/types/saved-search-delete-payload.js
wroteFile: schema/types/saved-search-delete-input.js
wroteFile: schema/types/saved-search-edge.js
wroteFile: schema/types/saved-search-update-payload.js
wroteFile: schema/types/saved-search-update-input.js
wroteFile: schema/types/script-tag.js
wroteFile: schema/types/script-tag-create-payload.js
wroteFile: schema/types/script-tag-display-scope.js
wroteFile: schema/types/script-tag-update-payload.js
wroteFile: schema/types/search-filter.js
wroteFile: schema/types/script-tag-edge.js
wroteFile: schema/types/script-tag-input.js
wroteFile: schema/types/script-tag-delete-payload.js
wroteFile: schema/types/script-tag-connection.js
wroteFile: schema/types/script-discount-application.js
wroteFile: schema/types/selected-option.js
wroteFile: schema/types/search-filter-options.js
wroteFile: schema/types/search-result-edge.js
wroteFile: schema/types/search-result-type.js
wroteFile: schema/types/search-result-connection.js
wroteFile: schema/types/shipping-line.js
wroteFile: schema/types/shipping-line-input.js
wroteFile: schema/types/search-result.js
wroteFile: schema/types/shipping-method.js
wroteFile: schema/types/shipping-package-make-default-payload.js
wroteFile: schema/types/shipping-rate.js
wroteFile: schema/types/shop.js
wroteFile: schema/types/shipping-package-update-payload.js
wroteFile: schema/types/shipping-package-delete-payload.js
wroteFile: schema/types/shipping-refund.js
wroteFile: schema/types/shipping-refund-input.js
wroteFile: schema/types/shop-alert.js
wroteFile: schema/types/shop-customer-accounts-setting.js
wroteFile: schema/types/shop-alert-action.js
wroteFile: schema/types/shop-branding.js
wroteFile: schema/types/shop-features.js
wroteFile: schema/types/shop-image-sort-keys.js
wroteFile: schema/types/shop-locale-input.js
wroteFile: schema/types/shop-locale.js
wroteFile: schema/types/shop-locale-enable-payload.js
wroteFile: schema/types/shop-plan.js
wroteFile: schema/types/shop-resource-limits.js
wroteFile: schema/types/shop-locale-disable-payload.js
wroteFile: schema/types/shop-locale-update-payload.js
wroteFile: schema/types/shopify-payments-bank-account-connection.js
wroteFile: schema/types/shopify-payments-bank-account-edge.js
wroteFile: schema/types/shopify-payments-bank-account-status.js
wroteFile: schema/types/shop-tag-sort.js
wroteFile: schema/types/shopify-payments-account.js
wroteFile: schema/types/shopify-payments-bank-account.js
wroteFile: schema/types/shopify-payments-charge-statement-descriptor.js
wroteFile: schema/types/shopify-payments-default-charge-statement-descriptor.js
wroteFile: schema/types/shopify-payments-dispute-reason.js
wroteFile: schema/types/shopify-payments-fraud-settings.js
wroteFile: schema/types/shopify-payments-dispute-reason-details.js
wroteFile: schema/types/shopify-payments-dispute.js
wroteFile: schema/types/shopify-payments-jp-charge-statement-descriptor.js
wroteFile: schema/types/shopify-payments-notification-settings.js
wroteFile: schema/types/shopify-payments-dispute-edge.js
wroteFile: schema/types/shopify-payments-dispute-connection.js
wroteFile: schema/types/shopify-payments-payout-connection.js
wroteFile: schema/types/shopify-payments-payout-schedule.js
wroteFile: schema/types/shopify-payments-payout-edge.js
wroteFile: schema/types/shopify-payments-payout-interval.js
wroteFile: schema/types/shopify-payments-payout-transaction-type.js
wroteFile: schema/types/shopify-payments-payout-summary.js
wroteFile: schema/types/shopify-payments-payout.js
wroteFile: schema/types/shopify-payments-payout-status.js
wroteFile: schema/types/staged-media-upload-target.js
wroteFile: schema/types/shopify-payments-verification-document.js
wroteFile: schema/types/shopify-payments-verification.js
wroteFile: schema/types/shopify-payments-verification-subject.js
wroteFile: schema/types/stage-image-input.js
wroteFile: schema/types/shopify-payments-verification-status.js
wroteFile: schema/types/shopify-payments-verification-document-type.js
wroteFile: schema/types/staged-upload-http-method-type.js
wroteFile: schema/types/staged-upload-input.js
wroteFile: schema/types/staged-upload-target-generate-payload.js
wroteFile: schema/types/staged-upload-parameter.js
wroteFile: schema/types/staged-upload-targets-generate-payload.js
wroteFile: schema/types/staged-upload-target.js
wroteFile: schema/types/storefront-access-token.js
wroteFile: schema/types/staged-upload-target-generate-input.js
wroteFile: schema/types/staged-upload-target-generate-upload-resource.js
wroteFile: schema/types/staged-uploads-create-payload.js
wroteFile: schema/types/storefront-access-token-create-payload.js
wroteFile: schema/types/storefront-access-token-connection.js
wroteFile: schema/types/storefront-access-token-delete-payload.js
wroteFile: schema/types/string.js
wroteFile: schema/types/storefront-access-token-edge.js
wroteFile: schema/types/storefront-id.js
wroteFile: schema/types/string-connection.js
wroteFile: schema/types/storefront-access-token-input.js
wroteFile: schema/types/string-edge.js
wroteFile: schema/types/storefront-access-token-delete-input.js
wroteFile: schema/types/tender-transaction.js
wroteFile: schema/types/tax-exemption.js
wroteFile: schema/types/suggested-order-transaction-kind.js
wroteFile: schema/types/suggested-order-transaction.js
wroteFile: schema/types/tax-line.js
wroteFile: schema/types/tags-add-payload.js
wroteFile: schema/types/tender-transaction-credit-card-details.js
wroteFile: schema/types/tender-transaction-connection.js
wroteFile: schema/types/tags-remove-payload.js
wroteFile: schema/types/tender-transaction-edge.js
wroteFile: schema/types/translatable-content.js
wroteFile: schema/types/tracking-info-update-input.js
wroteFile: schema/types/translatable-resource-edge.js
wroteFile: schema/types/translatable-resource-connection.js
wroteFile: schema/types/translatable-resource.js
wroteFile: schema/types/suggested-refund.js
wroteFile: schema/types/translation-error-code.js
wroteFile: schema/types/translation.js
wroteFile: schema/types/tender-transaction-details.js
wroteFile: schema/types/translation-user-error.js
wroteFile: schema/types/translatable-resource-type.js
wroteFile: schema/types/tracking-info-input.js
wroteFile: schema/types/translations-register-payload.js
wroteFile: schema/types/translation-input.js
wroteFile: schema/types/translations-remove-payload.js
wroteFile: schema/types/utm-input.js
wroteFile: schema/types/utm-parameters.js
wroteFile: schema/types/url.js
wroteFile: schema/types/unit-system.js
wroteFile: schema/types/unsigned-int-64.js
wroteFile: schema/types/utc-offset.js
wroteFile: schema/types/video.js
wroteFile: schema/types/user-error.js
wroteFile: schema/types/video-source.js
wroteFile: schema/types/webhook-subscription-create-payload.js
wroteFile: schema/types/webhook-subscription-connection.js
wroteFile: schema/types/webhook-subscription-delete-payload.js
wroteFile: schema/types/webhook-subscription-edge.js
wroteFile: schema/types/webhook-subscription.js
wroteFile: schema/types/update-media-input.js
wroteFile: schema/types/webhook-subscription-sort-keys.js
wroteFile: schema/types/webhook-subscription-topic.js
wroteFile: schema/types/webhook-subscription-input.js
wroteFile: schema/types/webhook-subscription-format.js
wroteFile: schema/types/weight.js
wroteFile: schema/types/directive-location.js
wroteFile: schema/types/webhook-subscription-update-payload.js
wroteFile: schema/types/weight-input.js
wroteFile: schema/types/directive.js
wroteFile: schema/types/enum-value.js
wroteFile: schema/types/weight-unit.js
wroteFile: schema/types/field.js
wroteFile: schema/types/input-value.js
wroteFile: schema/types/type.js
wroteFile: schema/types/schema.js
wroteFile: schema/types/type-kind.js
wroteFile: schema/types/delivery-profile-create-payload.js
wroteFile: schema/types.js
wroteFile: schema/types/delivery-profile-remove-payload.js
wroteFile: schema/types/delivery-profile-update-payload.js
deldrid1 commented 4 years ago

EDIT - looks like apollo's CLI can do some of the heavy lifting here too:

npx apollo client:download-schema --endpoint=https://{SHOP}.myshopify.com/admin/api/2020-10/graphql.json --header="content-type: application/json" --header="x-shopify-access-token: {shpca_..}."
wangshuai1992 commented 3 years ago

This shouldn't be this complicated and should be clearly explained in the README for us GraphQL noobs... Here is what I ended up doing:

  1. Get your OAuth token for your shop - you can't get the schema without Authorization
  2. Run these nasty bash scripts to get the schema (shamelessly stolen from https://gist.github.com/martinheld/9fe32b7e2c8fd932599d36e921a2a825)
# This creates a file to be used by curl to inspect the GraphQL API
cat >./introspection_query.json <<EOL
{ 
  "query": "query IntrospectionQuery {
      __schema {
        queryType { name }
        mutationType { name }
        subscriptionType { name }
        types {
          ...FullType
        }
        directives {
          name
          description
          locations
          args {
            ...InputValue
          }
        }
      }
    }

    fragment FullType on __Type {
      kind
      name
      description
      fields(includeDeprecated: true) {
        name
        description
        args {
          ...InputValue
        }
        type {
          ...TypeRef
        }
        isDeprecated
        deprecationReason
      }
      inputFields {
        ...InputValue
      }
      interfaces {
        ...TypeRef
      }
      enumValues(includeDeprecated: true) {
        name
        description
        isDeprecated
        deprecationReason
      }
      possibleTypes {
        ...TypeRef
      }
    }

    fragment InputValue on __InputValue {
      name
      description
      type { ...TypeRef }
      defaultValue
    }

    fragment TypeRef on __Type {
      kind
      name
      ofType {
        kind
        name
        ofType {
          kind
          name
          ofType {
            kind
            name
            ofType {
              kind
              name
              ofType {
                kind
                name
                ofType {
                  kind
                  name
                  ofType {
                    kind
                    name
                  }
                }
              }
            }
          }
        }
      }
    }"
}
EOL
# You need to update the SHOP, and TOKEN parameters
curl --request POST \
  --url https://{SHOP}.myshopify.com/admin/api/graphql.json \
  --header 'Content-Type: application/json' \
  --header 'X-Shopify-Access-Token: {TOKEN}' \
  -d @introspection_query.json \
  > schema.json

Finally, run the command in the README:

graphql-js-schema --schema-file ./schema.json --outdir schema --schema-bundle-name="Types"

Viola! You have types!

wroteFile: schema/types/access-scope.js
wroteFile: schema/types/api-version.js
wroteFile: schema/types/app-credit.js
wroteFile: schema/types/app-credit-connection.js
wroteFile: schema/types/app-credit-edge.js
wroteFile: schema/types/app-credit-create-payload.js
wroteFile: schema/types/app-feedback.js
wroteFile: schema/types/app-edge.js
wroteFile: schema/types/app-installation.js
wroteFile: schema/types/app-installation-category.js
wroteFile: schema/types/app-installation-edge.js
wroteFile: schema/types/app-plan-input.js
wroteFile: schema/types/app-installation-connection.js
wroteFile: schema/types/app-installation-sort-keys.js
wroteFile: schema/types/app-plan-v-2.js
wroteFile: schema/types/app-pricing-details.js
wroteFile: schema/types/app-installation-privacy.js
wroteFile: schema/types/app-purchase.js
wroteFile: schema/types/app-connection.js
wroteFile: schema/types/app-pricing-interval.js
wroteFile: schema/types/app-purchase-one-time-connection.js
wroteFile: schema/types/app-purchase-one-time-create-payload.js
wroteFile: schema/types/app-purchase-status.js
wroteFile: schema/types/app-purchase-one-time-edge.js
wroteFile: schema/types/app-subscription.js
wroteFile: schema/types/app.js
wroteFile: schema/types/app-subscription-cancel-payload.js
wroteFile: schema/types/app-recurring-pricing-input.js
wroteFile: schema/types/app-subscription-connection.js
wroteFile: schema/types/app-subscription-edge.js
wroteFile: schema/types/app-subscription-create-payload.js
wroteFile: schema/types/app-subscription-line-item.js
wroteFile: schema/types/app-subscription-line-item-update-payload.js
wroteFile: schema/types/app-subscription-status.js
wroteFile: schema/types/app-subscription-sort-keys.js
wroteFile: schema/types/app-usage-pricing-input.js
wroteFile: schema/types/app-subscription-line-item-input.js
wroteFile: schema/types/app-usage-pricing.js
wroteFile: schema/types/app-transaction-sort-keys.js
wroteFile: schema/types/app-usage-record-sort-keys.js
wroteFile: schema/types/app-usage-record-create-payload.js
wroteFile: schema/types/app-usage-record.js
wroteFile: schema/types/app-usage-record-connection.js
wroteFile: schema/types/app-usage-record-edge.js
wroteFile: schema/types/attribute-input.js
wroteFile: schema/types/attribute.js
wroteFile: schema/types/automatic-discount-sort-keys.js
wroteFile: schema/types/basic-event.js
wroteFile: schema/types/automatic-discount-application.js
wroteFile: schema/types/boolean.js
wroteFile: schema/types/bulk-operation-cancel-payload.js
wroteFile: schema/types/bulk-operation.js
wroteFile: schema/types/bulk-operation-run-query-payload.js
wroteFile: schema/types/bulk-operation-error-code.js
wroteFile: schema/types/calculated-draft-order.js
wroteFile: schema/types/calculated-line-item-connection.js
wroteFile: schema/types/bulk-operation-status.js
wroteFile: schema/types/calculated-draft-order-line-item.js
wroteFile: schema/types/calculated-line-item.js
wroteFile: schema/types/calculated-order.js
wroteFile: schema/types/channel.js
wroteFile: schema/types/channel-edge.js
wroteFile: schema/types/calculated-line-item-edge.js
wroteFile: schema/types/code-discount-sort-keys.js
wroteFile: schema/types/channel-connection.js
wroteFile: schema/types/collection.js
wroteFile: schema/types/collection-add-products-payload.js
wroteFile: schema/types/collection-create-payload.js
wroteFile: schema/types/collection-delete-payload.js
wroteFile: schema/types/collection-delete-input.js
wroteFile: schema/types/app-purchase-one-time.js
wroteFile: schema/types/collection-input.js
wroteFile: schema/types/collection-connection.js
wroteFile: schema/types/collection-publication-input.js
wroteFile: schema/types/all-discount-items.js
wroteFile: schema/types/collection-publication.js
wroteFile: schema/types/collection-publication-edge.js
wroteFile: schema/types/collection-publication-connection.js
wroteFile: schema/types/collection-publish-payload.js
wroteFile: schema/types/collection-remove-products-payload.js
wroteFile: schema/types/collection-rule.js
wroteFile: schema/types/collection-rule-column.js
wroteFile: schema/types/collection-reorder-products-payload.js
wroteFile: schema/types/collection-rule-conditions.js
wroteFile: schema/types/collection-rule-input.js
wroteFile: schema/types/collection-rule-relation.js
wroteFile: schema/types/collection-rule-set.js
wroteFile: schema/types/collection-rule-set-input.js
wroteFile: schema/types/collection-sort-keys.js
wroteFile: schema/types/collection-unpublish-input.js
wroteFile: schema/types/collection-unpublish-payload.js
wroteFile: schema/types/collection-sort-order.js
wroteFile: schema/types/comment-event-attachment.js
wroteFile: schema/types/comment-event.js
wroteFile: schema/types/comment-event-embed.js
wroteFile: schema/types/collection-update-payload.js
wroteFile: schema/types/country-code.js
wroteFile: schema/types/comment-event-subject.js
wroteFile: schema/types/countries-in-shipping-zones.js
wroteFile: schema/types/country-harmonized-system-code-connection.js
wroteFile: schema/types/country-harmonized-system-code.js
wroteFile: schema/types/app-recurring-pricing.js
wroteFile: schema/types/create-media-input.js
wroteFile: schema/types/country-harmonized-system-code-input.js
wroteFile: schema/types/crop-region.js
wroteFile: schema/types/currency-formats.js
wroteFile: schema/types/currency-code.js
wroteFile: schema/types/currency-setting-connection.js
wroteFile: schema/types/currency-setting.js
wroteFile: schema/types/customer-add-tax-exemptions-payload.js
wroteFile: schema/types/customer.js
wroteFile: schema/types/customer-connection.js
wroteFile: schema/types/currency-setting-edge.js
wroteFile: schema/types/customer-create-payload.js
wroteFile: schema/types/customer-delete-input.js
wroteFile: schema/types/collection-edge.js
wroteFile: schema/types/country-harmonized-system-code-edge.js
wroteFile: schema/types/collection-publish-input.js
wroteFile: schema/types/customer-edge.js
wroteFile: schema/types/customer-input.js
wroteFile: schema/types/customer-journey.js
wroteFile: schema/types/customer-delete-payload.js
wroteFile: schema/types/customer-marketing-opt-in-level.js
wroteFile: schema/types/customer-saved-search-sort-keys.js
wroteFile: schema/types/customer-replace-tax-exemptions-payload.js
wroteFile: schema/types/customer-moment.js
wroteFile: schema/types/customer-remove-tax-exemptions-payload.js
wroteFile: schema/types/day-of-the-week.js
wroteFile: schema/types/customer-state.js
wroteFile: schema/types/customer-sort-keys.js
wroteFile: schema/types/date-time.js
wroteFile: schema/types/customer-visit.js
wroteFile: schema/types/customer-update-default-address-payload.js
wroteFile: schema/types/customer-update-payload.js
wroteFile: schema/types/deletion-event-connection.js
wroteFile: schema/types/deletion-event.js
wroteFile: schema/types/delivery-available-service.js
wroteFile: schema/types/date.js
wroteFile: schema/types/decimal.js
wroteFile: schema/types/deletion-event-subject-type.js
wroteFile: schema/types/delivery-carrier-service.js
wroteFile: schema/types/deletion-event-edge.js
wroteFile: schema/types/delivery-carrier-service-and-locations.js
wroteFile: schema/types/delivery-condition-criteria.js
wroteFile: schema/types/deletion-event-sort-keys.js
wroteFile: schema/types/delivery-condition.js
wroteFile: schema/types/delivery-condition-field.js
wroteFile: schema/types/delivery-country-code-or-rest-of-world.js
wroteFile: schema/types/delivery-country.js
wroteFile: schema/types/delivery-condition-operator.js
wroteFile: schema/types/delivery-country-input.js
wroteFile: schema/types/delivery-country-and-zone.js
wroteFile: schema/types/delivery-legacy-mode-blocked-reason.js
wroteFile: schema/types/delivery-country-codes-or-rest-of-world.js
wroteFile: schema/types/delivery-location-group.js
wroteFile: schema/types/delivery-legacy-mode-blocked.js
wroteFile: schema/types/delivery-location-group-zone-connection.js
wroteFile: schema/types/delivery-location-group-zone.js
wroteFile: schema/types/delivery-location-group-zone-edge.js
wroteFile: schema/types/delivery-location-group-zone-input.js
wroteFile: schema/types/delivery-method-definition-edge.js
wroteFile: schema/types/delivery-method-definition.js
wroteFile: schema/types/delivery-method-definition-connection.js
wroteFile: schema/types/delivery-method-definition-input.js
wroteFile: schema/types/delivery-participant.js
wroteFile: schema/types/delivery-participant-input.js
wroteFile: schema/types/delivery-participant-service.js
wroteFile: schema/types/delivery-participant-service-input.js
wroteFile: schema/types/delivery-profile.js
wroteFile: schema/types/delivery-product-variants-count.js
wroteFile: schema/types/delivery-price-condition-input.js
wroteFile: schema/types/delivery-profile-input.js
wroteFile: schema/types/delivery-profile-edge.js
wroteFile: schema/types/delivery-profile-connection.js
wroteFile: schema/types/delivery-profile-item.js
wroteFile: schema/types/delivery-profile-location-group-input.js
wroteFile: schema/types/delivery-province.js
wroteFile: schema/types/delivery-province-input.js
wroteFile: schema/types/delivery-rate-definition-input.js
wroteFile: schema/types/delivery-profile-item-edge.js
wroteFile: schema/types/delivery-profile-location-group.js
wroteFile: schema/types/delivery-profile-item-connection.js
wroteFile: schema/types/delivery-rate-definition.js
wroteFile: schema/types/delivery-rate-provider.js
wroteFile: schema/types/delivery-setting.js
wroteFile: schema/types/delivery-shipping-origin-assign-payload.js
wroteFile: schema/types/delivery-setting-update-payload.js
wroteFile: schema/types/delivery-setting-input.js
wroteFile: schema/types/delivery-update-condition-input.js
wroteFile: schema/types/delivery-weight-condition-input.js
wroteFile: schema/types/discount-allocation.js
wroteFile: schema/types/discount-amount-input.js
wroteFile: schema/types/discount-amount.js
wroteFile: schema/types/delivery-zone.js
wroteFile: schema/types/discount-application.js
wroteFile: schema/types/discount-application-allocation-method.js
wroteFile: schema/types/discount-application-connection.js
wroteFile: schema/types/digital-wallet.js
wroteFile: schema/types/discount-application-edge.js
wroteFile: schema/types/discount-application-target-selection.js
wroteFile: schema/types/discount-automatic-basic-create-payload.js
wroteFile: schema/types/discount-application-target-type.js
wroteFile: schema/types/discount-automatic-bxgy.js
wroteFile: schema/types/discount-automatic-bulk-delete-payload.js
wroteFile: schema/types/discount-automatic-basic-update-payload.js
wroteFile: schema/types/discount-automatic-activate-payload.js
wroteFile: schema/types/discount-automatic-bxgy-input.js
wroteFile: schema/types/discount-automatic-basic.js
wroteFile: schema/types/discount-automatic-bxgy-create-payload.js
wroteFile: schema/types/discount-automatic.js
wroteFile: schema/types/discount-automatic-basic-input.js
wroteFile: schema/types/discount-automatic-bxgy-update-payload.js
wroteFile: schema/types/discount-automatic-deactivate-payload.js
wroteFile: schema/types/discount-automatic-delete-payload.js
wroteFile: schema/types/discount-automatic-connection.js
wroteFile: schema/types/discount-automatic-edge.js
wroteFile: schema/types/discount-automatic-node-connection.js
wroteFile: schema/types/discount-automatic-node.js
wroteFile: schema/types/discount-automatic-node-edge.js
wroteFile: schema/types/discount-code.js
wroteFile: schema/types/discount-code-activate-payload.js
wroteFile: schema/types/discount-code-basic.js
wroteFile: schema/types/discount-code-application.js
wroteFile: schema/types/discount-code-basic-update-payload.js
wroteFile: schema/types/discount-code-basic-create-payload.js
wroteFile: schema/types/discount-code-basic-input.js
wroteFile: schema/types/discount-code-bxgy.js
wroteFile: schema/types/discount-code-bxgy-create-payload.js
wroteFile: schema/types/discount-code-bxgy-update-payload.js
wroteFile: schema/types/discount-code-free-shipping-create-payload.js
wroteFile: schema/types/discount-code-free-shipping-input.js
wroteFile: schema/types/discount-code-bxgy-input.js
wroteFile: schema/types/discount-code-free-shipping.js
wroteFile: schema/types/discount-code-node.js
wroteFile: schema/types/discount-code-deactivate-payload.js
wroteFile: schema/types/discount-code-free-shipping-update-payload.js
wroteFile: schema/types/discount-code-node-connection.js
wroteFile: schema/types/discount-code-sort-keys.js
wroteFile: schema/types/discount-countries-input.js
wroteFile: schema/types/discount-code-delete-payload.js
wroteFile: schema/types/discount-collections.js
wroteFile: schema/types/discount-collections-input.js
wroteFile: schema/types/discount-countries.js
wroteFile: schema/types/discount-code-node-edge.js
wroteFile: schema/types/discount-country-all.js
wroteFile: schema/types/discount-customer-all.js
wroteFile: schema/types/discount-customer-buys.js
wroteFile: schema/types/discount-customer-buys-value-input.js
wroteFile: schema/types/discount-customer-buys-input.js
wroteFile: schema/types/discount-customer-buys-value.js
wroteFile: schema/types/discount-customer-gets-input.js
wroteFile: schema/types/discount-customer-gets.js
wroteFile: schema/types/discount-customer-gets-value-input.js
wroteFile: schema/types/discount-customer-gets-value.js
wroteFile: schema/types/discount-customer-saved-searches-input.js
wroteFile: schema/types/discount-customer-selection-input.js
wroteFile: schema/types/discount-customer-saved-searches.js
wroteFile: schema/types/discount-customers.js
wroteFile: schema/types/discount-effect-input.js
wroteFile: schema/types/discount-error-code.js
wroteFile: schema/types/discount-items.js
wroteFile: schema/types/discount-customers-input.js
wroteFile: schema/types/discount-minimum-quantity-input.js
wroteFile: schema/types/discount-effect.js
wroteFile: schema/types/discount-items-input.js
wroteFile: schema/types/discount-customer-selection.js
wroteFile: schema/types/discount-minimum-quantity.js
wroteFile: schema/types/discount-minimum-requirement.js
wroteFile: schema/types/discount-minimum-subtotal-input.js
wroteFile: schema/types/discount-minimum-requirement-input.js
wroteFile: schema/types/discount-minimum-subtotal.js
wroteFile: schema/types/discount-on-quantity.js
wroteFile: schema/types/discount-percentage.js
wroteFile: schema/types/discount-purchase-amount.js
wroteFile: schema/types/discount-on-quantity-input.js
wroteFile: schema/types/discount-products.js
wroteFile: schema/types/discount-products-input.js
wroteFile: schema/types/discount-quantity.js
wroteFile: schema/types/discount-redeem-code.js
wroteFile: schema/types/discount-redeem-code-connection.js
wroteFile: schema/types/discount-user-error.js
wroteFile: schema/types/discount-shipping-destination-selection-input.js
wroteFile: schema/types/discount-redeem-code-edge.js
wroteFile: schema/types/discount-status.js
wroteFile: schema/types/discount-shipping-destination-selection.js
wroteFile: schema/types/displayable-error.js
wroteFile: schema/types/dispute-status.js
wroteFile: schema/types/dispute-type.js
wroteFile: schema/types/draft-fulfillment.js
wroteFile: schema/types/domain.js
wroteFile: schema/types/draft-order-applied-discount-input.js
wroteFile: schema/types/draft-order-applied-discount.js
wroteFile: schema/types/draft-order.js
wroteFile: schema/types/draft-order-calculate-payload.js
wroteFile: schema/types/draft-order-complete-payload.js
wroteFile: schema/types/draft-order-applied-discount-type.js
wroteFile: schema/types/draft-order-connection.js
wroteFile: schema/types/draft-order-delete-input.js
wroteFile: schema/types/draft-order-create-payload.js
wroteFile: schema/types/draft-order-delete-payload.js
wroteFile: schema/types/draft-order-edge.js
wroteFile: schema/types/draft-order-input.js
wroteFile: schema/types/draft-order-line-item.js
wroteFile: schema/types/draft-order-invoice-preview-payload.js
wroteFile: schema/types/draft-order-invoice-send-payload.js
wroteFile: schema/types/draft-order-line-item-input.js
wroteFile: schema/types/draft-order-line-item-edge.js
wroteFile: schema/types/draft-order-line-item-connection.js
wroteFile: schema/types/draft-order-sort-keys.js
wroteFile: schema/types/draft-order-update-payload.js
wroteFile: schema/types/draft-order-status.js
wroteFile: schema/types/editable-property.js
wroteFile: schema/types/email-input.js
wroteFile: schema/types/event.js
wroteFile: schema/types/event-edge.js
wroteFile: schema/types/event-connection.js
wroteFile: schema/types/flow-trigger-receive-payload.js
wroteFile: schema/types/failed-requirement.js
wroteFile: schema/types/filter-option.js
wroteFile: schema/types/fulfillment.js
wroteFile: schema/types/fulfillment-cancel-payload.js
wroteFile: schema/types/formatted-string.js
wroteFile: schema/types/fulfillment-connection.js
wroteFile: schema/types/event-sort-keys.js
wroteFile: schema/types/external-video.js
wroteFile: schema/types/float.js
wroteFile: schema/types/fulfillment-create-v-2-payload.js
wroteFile: schema/types/fulfillment-create-payload.js
wroteFile: schema/types/fulfillment-edge.js
wroteFile: schema/types/fulfillment-display-status.js
wroteFile: schema/types/fulfillment-event.js
wroteFile: schema/types/fulfillment-event-edge.js
wroteFile: schema/types/fulfillment-event-connection.js
wroteFile: schema/types/fulfillment-event-status.js
wroteFile: schema/types/fulfillment-event-sort-keys.js
wroteFile: schema/types/fulfillment-line-item.js
wroteFile: schema/types/fulfillment-line-item-edge.js
wroteFile: schema/types/fulfillment-input.js
wroteFile: schema/types/fulfillment-line-item-connection.js
wroteFile: schema/types/fulfillment-order-accept-cancellation-request-payload.js
wroteFile: schema/types/fulfillment-line-item-input.js
wroteFile: schema/types/fulfillment-order.js
wroteFile: schema/types/fulfillment-order-action.js
wroteFile: schema/types/fulfillment-order-accept-fulfillment-request-payload.js
wroteFile: schema/types/fulfillment-order-assigned-location.js
wroteFile: schema/types/fulfillment-order-assignment-status.js
wroteFile: schema/types/fulfillment-order-cancel-payload.js
wroteFile: schema/types/fulfillment-order-destination.js
wroteFile: schema/types/fulfillment-order-connection.js
wroteFile: schema/types/fulfillment-order-close-payload.js
wroteFile: schema/types/fulfillment-order-line-item-edge.js
wroteFile: schema/types/fulfillment-order-line-item-input.js
wroteFile: schema/types/fulfillment-order-edge.js
wroteFile: schema/types/fulfillment-order-line-item.js
wroteFile: schema/types/fulfillment-order-location-for-move.js
wroteFile: schema/types/fulfillment-order-line-items-input.js
wroteFile: schema/types/fulfillment-order-line-item-connection.js
wroteFile: schema/types/fulfillment-order-merchant-request-connection.js
wroteFile: schema/types/fulfillment-order-merchant-request-kind.js
wroteFile: schema/types/fulfillment-order-location-for-move-connection.js
wroteFile: schema/types/fulfillment-order-merchant-request-edge.js
wroteFile: schema/types/fulfillment-order-location-for-move-edge.js
wroteFile: schema/types/fulfillment-order-sort-keys.js
wroteFile: schema/types/fulfillment-order-move-payload.js
wroteFile: schema/types/fulfillment-order-merchant-request.js
wroteFile: schema/types/fulfillment-order-reject-cancellation-request-payload.js
wroteFile: schema/types/fulfillment-order-submit-fulfillment-request-payload.js
wroteFile: schema/types/fulfillment-order-submit-cancellation-request-payload.js
wroteFile: schema/types/fulfillment-order-request-status.js
wroteFile: schema/types/fulfillment-order-status.js
wroteFile: schema/types/fulfillment-service-type.js
wroteFile: schema/types/fulfillment-service-create-payload.js
wroteFile: schema/types/fulfillment-order-reject-fulfillment-request-payload.js
wroteFile: schema/types/fulfillment-order-supported-action.js
wroteFile: schema/types/fulfillment-service-delete-payload.js
wroteFile: schema/types/fulfillment-service.js
wroteFile: schema/types/fulfillment-service-update-payload.js
wroteFile: schema/types/fulfillment-tracking-info.js
wroteFile: schema/types/fulfillment-status.js
wroteFile: schema/types/fulfillment-tracking-info-update-payload.js
wroteFile: schema/types/fulfillment-tracking-info-update-v-2-payload.js
wroteFile: schema/types/fulfillment-v-2-input.js
wroteFile: schema/types/fulfillment-tracking-input.js
wroteFile: schema/types/has-published-translations.js
wroteFile: schema/types/has-metafields.js
wroteFile: schema/types/image-edge.js
wroteFile: schema/types/image-content-type.js
wroteFile: schema/types/has-events.js
wroteFile: schema/types/id.js
wroteFile: schema/types/html.js
wroteFile: schema/types/image-connection.js
wroteFile: schema/types/int.js
wroteFile: schema/types/image-input.js
wroteFile: schema/types/image.js
wroteFile: schema/types/image-upload-parameter.js
wroteFile: schema/types/inventory-activate-payload.js
wroteFile: schema/types/inventory-adjust-item-input.js
wroteFile: schema/types/inventory-deactivate-payload.js
wroteFile: schema/types/inventory-item.js
wroteFile: schema/types/inventory-item-input.js
wroteFile: schema/types/inventory-adjust-quantity-payload.js
wroteFile: schema/types/inventory-item-edge.js
wroteFile: schema/types/inventory-adjust-quantity-input.js
wroteFile: schema/types/inventory-item-update-input.js
wroteFile: schema/types/inventory-level-connection.js
wroteFile: schema/types/inventory-bulk-adjust-quantity-at-location-payload.js
wroteFile: schema/types/inventory-item-connection.js
wroteFile: schema/types/inventory-level.js
wroteFile: schema/types/inventory-level-edge.js
wroteFile: schema/types/inventory-item-update-payload.js
wroteFile: schema/types/inventory-level-input.js
wroteFile: schema/types/json.js
wroteFile: schema/types/kit-skill-trigger-request-payload.js
wroteFile: schema/types/legacy-interoperability.js
wroteFile: schema/types/line-item.js
wroteFile: schema/types/job.js
wroteFile: schema/types/kit-skill-locale.js
wroteFile: schema/types/limited-pending-order-count.js
wroteFile: schema/types/line-item-mutable.js
wroteFile: schema/types/line-item-edge.js
wroteFile: schema/types/line-item-connection.js
wroteFile: schema/types/line-item-mutable-edge.js
wroteFile: schema/types/link.js
wroteFile: schema/types/line-item-mutable-connection.js
wroteFile: schema/types/location-edge.js
wroteFile: schema/types/location-connection.js
wroteFile: schema/types/locale.js
wroteFile: schema/types/location-address.js
wroteFile: schema/types/location.js
wroteFile: schema/types/location-sort-keys.js
wroteFile: schema/types/mailing-address-input.js
wroteFile: schema/types/location-suggested-address.js
wroteFile: schema/types/mailing-address.js
wroteFile: schema/types/marketing-activity-extension-app-error-code.js
wroteFile: schema/types/manual-discount-application.js
wroteFile: schema/types/marketing-activity.js
wroteFile: schema/types/marketing-activity-extension-app-errors.js
wroteFile: schema/types/marketing-activity-update-payload.js
wroteFile: schema/types/marketing-activity-status.js
wroteFile: schema/types/marketing-activity-sort-keys.js
wroteFile: schema/types/marketing-activity-update-input.js
wroteFile: schema/types/marketing-budget.js
wroteFile: schema/types/marketing-channel.js
wroteFile: schema/types/marketing-budget-budget-type.js
wroteFile: schema/types/marketing-engagement-input.js
wroteFile: schema/types/marketing-engagement-create-payload.js
wroteFile: schema/types/marketing-engagement.js
wroteFile: schema/types/marketing-event.js
wroteFile: schema/types/marketing-event-edge.js
wroteFile: schema/types/marketing-tactic.js
wroteFile: schema/types/marketing-activity-connection.js
wroteFile: schema/types/marketing-event-sort-keys.js
wroteFile: schema/types/media.js
wroteFile: schema/types/media-connection.js
wroteFile: schema/types/media-content-type.js
wroteFile: schema/types/marketing-activity-edge.js
wroteFile: schema/types/marketing-event-connection.js
wroteFile: schema/types/media-preview-image.js
wroteFile: schema/types/marketing-activity-budget-input.js
wroteFile: schema/types/media-error-code.js
wroteFile: schema/types/media-preview-image-status.js
wroteFile: schema/types/media-user-error-code.js
wroteFile: schema/types/media-image.js
wroteFile: schema/types/media-edge.js
wroteFile: schema/types/media-error.js
wroteFile: schema/types/media-status.js
wroteFile: schema/types/metafield.js
wroteFile: schema/types/media-user-error.js
wroteFile: schema/types/metafield-connection.js
wroteFile: schema/types/metafield-delete-input.js
wroteFile: schema/types/metafield-edge.js
wroteFile: schema/types/metafield-owner-type.js
wroteFile: schema/types/metafield-delete-payload.js
wroteFile: schema/types/metafield-storefront-visibility-connection.js
wroteFile: schema/types/metafield-input.js
wroteFile: schema/types/metafield-storefront-visibility-create-payload.js
wroteFile: schema/types/metafield-storefront-visibility-edge.js
wroteFile: schema/types/metafield-storefront-visibility.js
wroteFile: schema/types/metafield-storefront-visibility-input.js
wroteFile: schema/types/metafield-storefront-visibility-delete-payload.js
wroteFile: schema/types/model-3-d-source.js
wroteFile: schema/types/method-definition-sort-keys.js
wroteFile: schema/types/metafield-value-type.js
wroteFile: schema/types/model-3-d.js
wroteFile: schema/types/money-input.js
wroteFile: schema/types/money-bag.js
wroteFile: schema/types/move-input.js
wroteFile: schema/types/mutations-staged-upload-target-generate-upload-parameter.js
wroteFile: schema/types/money.js
wroteFile: schema/types/money-v-2.js
wroteFile: schema/types/node.js
wroteFile: schema/types/mutation.js
wroteFile: schema/types/navigable.js
wroteFile: schema/types/online-store-article.js
wroteFile: schema/types/navigation-item.js
wroteFile: schema/types/online-store-previewable.js
wroteFile: schema/types/online-store-blog.js
wroteFile: schema/types/online-store-page.js
wroteFile: schema/types/order-cancel-reason.js
wroteFile: schema/types/order.js
wroteFile: schema/types/order-capture-input.js
wroteFile: schema/types/order-capture-payload.js
wroteFile: schema/types/order-close-input.js
wroteFile: schema/types/order-dispute-summary.js
wroteFile: schema/types/order-connection.js
wroteFile: schema/types/order-edit-add-variant-payload.js
wroteFile: schema/types/order-close-payload.js
wroteFile: schema/types/order-display-financial-status.js
wroteFile: schema/types/order-input.js
wroteFile: schema/types/order-edit-begin-payload.js
wroteFile: schema/types/order-edit-commit-payload.js
wroteFile: schema/types/order-edit-set-quantity-payload.js
wroteFile: schema/types/order-mark-as-paid-input.js
wroteFile: schema/types/order-edit-add-custom-item-payload.js
wroteFile: schema/types/order-edge.js
wroteFile: schema/types/order-display-fulfillment-status.js
wroteFile: schema/types/order-open-payload.js
wroteFile: schema/types/order-open-input.js
wroteFile: schema/types/order-mark-as-paid-payload.js
wroteFile: schema/types/order-payment-collection-details.js
wroteFile: schema/types/order-sort-keys.js
wroteFile: schema/types/order-risk.js
wroteFile: schema/types/order-staged-change.js
wroteFile: schema/types/order-staged-change-add-variant.js
wroteFile: schema/types/order-risk-level.js
wroteFile: schema/types/order-staged-change-connection.js
wroteFile: schema/types/order-staged-change-decrement-item.js
wroteFile: schema/types/order-staged-change-add-custom-item.js
wroteFile: schema/types/order-staged-change-edge.js
wroteFile: schema/types/order-staged-change-increment-item.js
wroteFile: schema/types/order-transaction-connection.js
wroteFile: schema/types/order-transaction.js
wroteFile: schema/types/order-transaction-edge.js
wroteFile: schema/types/order-transaction-input.js
wroteFile: schema/types/order-transaction-error-code.js
wroteFile: schema/types/order-transaction-kind.js
wroteFile: schema/types/order-transaction-status.js
wroteFile: schema/types/order-update-payload.js
wroteFile: schema/types/price-reduction-input.js
wroteFile: schema/types/payment-methods.js
wroteFile: schema/types/page-info.js
wroteFile: schema/types/price-rule.js
wroteFile: schema/types/payment-settings.js
wroteFile: schema/types/price-rule-allocation-method.js
wroteFile: schema/types/price-rule-activate-payload.js
wroteFile: schema/types/price-rule-connection.js
wroteFile: schema/types/price-rule-create-payload.js
wroteFile: schema/types/price-rule-deactivate-payload.js
wroteFile: schema/types/price-rule-discount-code-create-payload.js
wroteFile: schema/types/price-rule-customer-selection.js
wroteFile: schema/types/price-rule-discount-code-connection.js
wroteFile: schema/types/price-rule-edge.js
wroteFile: schema/types/price-rule-discount-code-edge.js
wroteFile: schema/types/price-rule-discount-code-input.js
wroteFile: schema/types/price-rule-customer-selection-input.js
wroteFile: schema/types/price-rule-discount-code.js
wroteFile: schema/types/price-rule-delete-payload.js
wroteFile: schema/types/price-rule-discount-code-update-payload.js
wroteFile: schema/types/price-rule-entitlement-to-prerequisite-quantity-ratio-input.js
wroteFile: schema/types/price-rule-input.js
wroteFile: schema/types/price-rule-entitlement-to-prerequisite-quantity-ratio.js
wroteFile: schema/types/price-rule-fixed-amount-value.js
wroteFile: schema/types/price-rule-error-code.js
wroteFile: schema/types/price-rule-item-prerequisites-input.js
wroteFile: schema/types/price-rule-feature.js
wroteFile: schema/types/price-rule-item-entitlements-input.js
wroteFile: schema/types/price-rule-line-item-prerequisites.js
wroteFile: schema/types/price-rule-item-entitlements.js
wroteFile: schema/types/price-rule-percent-value.js
wroteFile: schema/types/price-rule-money-range.js
wroteFile: schema/types/price-rule-quantity-range.js
wroteFile: schema/types/price-rule-prerequisite-to-entitlement-quantity-ratio-input.js
wroteFile: schema/types/price-rule-prerequisite-to-entitlement-quantity-ratio.js
wroteFile: schema/types/price-rule-money-range-input.js
wroteFile: schema/types/price-rule-shipping-entitlements-input.js
wroteFile: schema/types/price-rule-quantity-range-input.js
wroteFile: schema/types/price-rule-shareable-url.js
wroteFile: schema/types/price-rule-shareable-url-target-type.js
wroteFile: schema/types/price-rule-shipping-line-entitlements.js
wroteFile: schema/types/price-rule-update-payload.js
wroteFile: schema/types/price-rule-status.js
wroteFile: schema/types/price-rule-trait.js
wroteFile: schema/types/price-rule-user-error.js
wroteFile: schema/types/price-rule-sort-keys.js
wroteFile: schema/types/price-rule-target.js
wroteFile: schema/types/price-rule-validity-period.js
wroteFile: schema/types/price-rule-value.js
wroteFile: schema/types/price-rule-value-input.js
wroteFile: schema/types/pricing-percentage-value.js
wroteFile: schema/types/pricing-value.js
wroteFile: schema/types/private-metafield.js
wroteFile: schema/types/price-rule-validity-period-input.js
wroteFile: schema/types/private-metafield-connection.js
wroteFile: schema/types/private-metafield-input.js
wroteFile: schema/types/private-metafield-edge.js
wroteFile: schema/types/private-metafield-delete-payload.js
wroteFile: schema/types/private-metafield-delete-input.js
wroteFile: schema/types/private-metafield-value-type.js
wroteFile: schema/types/product-bulk-add-price-reductions-payload.js
wroteFile: schema/types/private-metafield-value-input.js
wroteFile: schema/types/product-bulk-remove-price-reductions-payload.js
wroteFile: schema/types/product-connection.js
wroteFile: schema/types/product.js
wroteFile: schema/types/product-append-images-payload.js
wroteFile: schema/types/product-append-images-input.js
wroteFile: schema/types/product-create-media-payload.js
wroteFile: schema/types/product-create-payload.js
wroteFile: schema/types/private-metafield-upsert-payload.js
wroteFile: schema/types/product-collection-sort-keys.js
wroteFile: schema/types/product-delete-images-payload.js
wroteFile: schema/types/product-duplicate-payload.js
wroteFile: schema/types/product-image-update-payload.js
wroteFile: schema/types/product-delete-media-payload.js
wroteFile: schema/types/product-delete-payload.js
wroteFile: schema/types/product-delete-input.js
wroteFile: schema/types/product-edge.js
wroteFile: schema/types/product-image-sort-keys.js
wroteFile: schema/types/product-input.js
wroteFile: schema/types/product-media-sort-keys.js
wroteFile: schema/types/product-price-range.js
wroteFile: schema/types/product-publish-input.js
wroteFile: schema/types/product-publication-edge.js
wroteFile: schema/types/product-publish-payload.js
wroteFile: schema/types/product-publication-connection.js
wroteFile: schema/types/product-reorder-images-payload.js
wroteFile: schema/types/product-publication-input.js
wroteFile: schema/types/product-option.js
wroteFile: schema/types/product-reorder-media-payload.js
wroteFile: schema/types/product-publication.js
wroteFile: schema/types/product-sort-keys.js
wroteFile: schema/types/product-update-payload.js
wroteFile: schema/types/product-unpublish-payload.js
wroteFile: schema/types/product-update-media-payload.js
wroteFile: schema/types/product-unpublish-input.js
wroteFile: schema/types/product-variant.js
wroteFile: schema/types/product-variant-connection.js
wroteFile: schema/types/product-variant-create-payload.js
wroteFile: schema/types/product-variant-inventory-management.js
wroteFile: schema/types/product-variant-price-pair.js
wroteFile: schema/types/product-variant-inventory-policy.js
wroteFile: schema/types/product-variant-price-pair-connection.js
wroteFile: schema/types/product-variant-input.js
wroteFile: schema/types/product-variant-price-pair-edge.js
wroteFile: schema/types/product-variant-edge.js
wroteFile: schema/types/product-variant-delete-payload.js
wroteFile: schema/types/profile-item-sort-keys.js
wroteFile: schema/types/publication.js
wroteFile: schema/types/publication-connection.js
wroteFile: schema/types/product-variant-sort-keys.js
wroteFile: schema/types/product-variant-update-payload.js
wroteFile: schema/types/publishable-publish-payload.js
wroteFile: schema/types/publishable-publish-to-current-channel-payload.js
wroteFile: schema/types/publishable-unpublish-payload.js
wroteFile: schema/types/published-translation.js
wroteFile: schema/types/publishable.js
wroteFile: schema/types/publishable-unpublish-to-current-channel-payload.js
wroteFile: schema/types/publication-input.js
wroteFile: schema/types/publication-edge.js
wroteFile: schema/types/query-root.js
wroteFile: schema/types/refund-line-item-connection.js
wroteFile: schema/types/refund-input.js
wroteFile: schema/types/refund-create-payload.js
wroteFile: schema/types/refund.js
wroteFile: schema/types/refund-line-item.js
wroteFile: schema/types/refund-line-item-restock-type.js
wroteFile: schema/types/refund-line-item-input.js
wroteFile: schema/types/refund-line-item-edge.js
wroteFile: schema/types/refund-line-item-refund-type.js
wroteFile: schema/types/resource-alert-action.js
wroteFile: schema/types/resource-alert-icon.js
wroteFile: schema/types/resource-alert.js
wroteFile: schema/types/resource-publication-connection.js
wroteFile: schema/types/resource-publication.js
wroteFile: schema/types/resource-feedback.js
wroteFile: schema/types/resource-alert-severity.js
wroteFile: schema/types/resource-limit.js
wroteFile: schema/types/resource-publication-edge.js
wroteFile: schema/types/seo-input.js
wroteFile: schema/types/seo.js
wroteFile: schema/types/saved-search.js
wroteFile: schema/types/saved-search-connection.js
wroteFile: schema/types/saved-search-create-payload.js
wroteFile: schema/types/saved-search-create-input.js
wroteFile: schema/types/saved-search-delete-payload.js
wroteFile: schema/types/saved-search-delete-input.js
wroteFile: schema/types/saved-search-edge.js
wroteFile: schema/types/saved-search-update-payload.js
wroteFile: schema/types/saved-search-update-input.js
wroteFile: schema/types/script-tag.js
wroteFile: schema/types/script-tag-create-payload.js
wroteFile: schema/types/script-tag-display-scope.js
wroteFile: schema/types/script-tag-update-payload.js
wroteFile: schema/types/search-filter.js
wroteFile: schema/types/script-tag-edge.js
wroteFile: schema/types/script-tag-input.js
wroteFile: schema/types/script-tag-delete-payload.js
wroteFile: schema/types/script-tag-connection.js
wroteFile: schema/types/script-discount-application.js
wroteFile: schema/types/selected-option.js
wroteFile: schema/types/search-filter-options.js
wroteFile: schema/types/search-result-edge.js
wroteFile: schema/types/search-result-type.js
wroteFile: schema/types/search-result-connection.js
wroteFile: schema/types/shipping-line.js
wroteFile: schema/types/shipping-line-input.js
wroteFile: schema/types/search-result.js
wroteFile: schema/types/shipping-method.js
wroteFile: schema/types/shipping-package-make-default-payload.js
wroteFile: schema/types/shipping-rate.js
wroteFile: schema/types/shop.js
wroteFile: schema/types/shipping-package-update-payload.js
wroteFile: schema/types/shipping-package-delete-payload.js
wroteFile: schema/types/shipping-refund.js
wroteFile: schema/types/shipping-refund-input.js
wroteFile: schema/types/shop-alert.js
wroteFile: schema/types/shop-customer-accounts-setting.js
wroteFile: schema/types/shop-alert-action.js
wroteFile: schema/types/shop-branding.js
wroteFile: schema/types/shop-features.js
wroteFile: schema/types/shop-image-sort-keys.js
wroteFile: schema/types/shop-locale-input.js
wroteFile: schema/types/shop-locale.js
wroteFile: schema/types/shop-locale-enable-payload.js
wroteFile: schema/types/shop-plan.js
wroteFile: schema/types/shop-resource-limits.js
wroteFile: schema/types/shop-locale-disable-payload.js
wroteFile: schema/types/shop-locale-update-payload.js
wroteFile: schema/types/shopify-payments-bank-account-connection.js
wroteFile: schema/types/shopify-payments-bank-account-edge.js
wroteFile: schema/types/shopify-payments-bank-account-status.js
wroteFile: schema/types/shop-tag-sort.js
wroteFile: schema/types/shopify-payments-account.js
wroteFile: schema/types/shopify-payments-bank-account.js
wroteFile: schema/types/shopify-payments-charge-statement-descriptor.js
wroteFile: schema/types/shopify-payments-default-charge-statement-descriptor.js
wroteFile: schema/types/shopify-payments-dispute-reason.js
wroteFile: schema/types/shopify-payments-fraud-settings.js
wroteFile: schema/types/shopify-payments-dispute-reason-details.js
wroteFile: schema/types/shopify-payments-dispute.js
wroteFile: schema/types/shopify-payments-jp-charge-statement-descriptor.js
wroteFile: schema/types/shopify-payments-notification-settings.js
wroteFile: schema/types/shopify-payments-dispute-edge.js
wroteFile: schema/types/shopify-payments-dispute-connection.js
wroteFile: schema/types/shopify-payments-payout-connection.js
wroteFile: schema/types/shopify-payments-payout-schedule.js
wroteFile: schema/types/shopify-payments-payout-edge.js
wroteFile: schema/types/shopify-payments-payout-interval.js
wroteFile: schema/types/shopify-payments-payout-transaction-type.js
wroteFile: schema/types/shopify-payments-payout-summary.js
wroteFile: schema/types/shopify-payments-payout.js
wroteFile: schema/types/shopify-payments-payout-status.js
wroteFile: schema/types/staged-media-upload-target.js
wroteFile: schema/types/shopify-payments-verification-document.js
wroteFile: schema/types/shopify-payments-verification.js
wroteFile: schema/types/shopify-payments-verification-subject.js
wroteFile: schema/types/stage-image-input.js
wroteFile: schema/types/shopify-payments-verification-status.js
wroteFile: schema/types/shopify-payments-verification-document-type.js
wroteFile: schema/types/staged-upload-http-method-type.js
wroteFile: schema/types/staged-upload-input.js
wroteFile: schema/types/staged-upload-target-generate-payload.js
wroteFile: schema/types/staged-upload-parameter.js
wroteFile: schema/types/staged-upload-targets-generate-payload.js
wroteFile: schema/types/staged-upload-target.js
wroteFile: schema/types/storefront-access-token.js
wroteFile: schema/types/staged-upload-target-generate-input.js
wroteFile: schema/types/staged-upload-target-generate-upload-resource.js
wroteFile: schema/types/staged-uploads-create-payload.js
wroteFile: schema/types/storefront-access-token-create-payload.js
wroteFile: schema/types/storefront-access-token-connection.js
wroteFile: schema/types/storefront-access-token-delete-payload.js
wroteFile: schema/types/string.js
wroteFile: schema/types/storefront-access-token-edge.js
wroteFile: schema/types/storefront-id.js
wroteFile: schema/types/string-connection.js
wroteFile: schema/types/storefront-access-token-input.js
wroteFile: schema/types/string-edge.js
wroteFile: schema/types/storefront-access-token-delete-input.js
wroteFile: schema/types/tender-transaction.js
wroteFile: schema/types/tax-exemption.js
wroteFile: schema/types/suggested-order-transaction-kind.js
wroteFile: schema/types/suggested-order-transaction.js
wroteFile: schema/types/tax-line.js
wroteFile: schema/types/tags-add-payload.js
wroteFile: schema/types/tender-transaction-credit-card-details.js
wroteFile: schema/types/tender-transaction-connection.js
wroteFile: schema/types/tags-remove-payload.js
wroteFile: schema/types/tender-transaction-edge.js
wroteFile: schema/types/translatable-content.js
wroteFile: schema/types/tracking-info-update-input.js
wroteFile: schema/types/translatable-resource-edge.js
wroteFile: schema/types/translatable-resource-connection.js
wroteFile: schema/types/translatable-resource.js
wroteFile: schema/types/suggested-refund.js
wroteFile: schema/types/translation-error-code.js
wroteFile: schema/types/translation.js
wroteFile: schema/types/tender-transaction-details.js
wroteFile: schema/types/translation-user-error.js
wroteFile: schema/types/translatable-resource-type.js
wroteFile: schema/types/tracking-info-input.js
wroteFile: schema/types/translations-register-payload.js
wroteFile: schema/types/translation-input.js
wroteFile: schema/types/translations-remove-payload.js
wroteFile: schema/types/utm-input.js
wroteFile: schema/types/utm-parameters.js
wroteFile: schema/types/url.js
wroteFile: schema/types/unit-system.js
wroteFile: schema/types/unsigned-int-64.js
wroteFile: schema/types/utc-offset.js
wroteFile: schema/types/video.js
wroteFile: schema/types/user-error.js
wroteFile: schema/types/video-source.js
wroteFile: schema/types/webhook-subscription-create-payload.js
wroteFile: schema/types/webhook-subscription-connection.js
wroteFile: schema/types/webhook-subscription-delete-payload.js
wroteFile: schema/types/webhook-subscription-edge.js
wroteFile: schema/types/webhook-subscription.js
wroteFile: schema/types/update-media-input.js
wroteFile: schema/types/webhook-subscription-sort-keys.js
wroteFile: schema/types/webhook-subscription-topic.js
wroteFile: schema/types/webhook-subscription-input.js
wroteFile: schema/types/webhook-subscription-format.js
wroteFile: schema/types/weight.js
wroteFile: schema/types/directive-location.js
wroteFile: schema/types/webhook-subscription-update-payload.js
wroteFile: schema/types/weight-input.js
wroteFile: schema/types/directive.js
wroteFile: schema/types/enum-value.js
wroteFile: schema/types/weight-unit.js
wroteFile: schema/types/field.js
wroteFile: schema/types/input-value.js
wroteFile: schema/types/type.js
wroteFile: schema/types/schema.js
wroteFile: schema/types/type-kind.js
wroteFile: schema/types/delivery-profile-create-payload.js
wroteFile: schema/types.js
wroteFile: schema/types/delivery-profile-remove-payload.js
wroteFile: schema/types/delivery-profile-update-payload.js

thanks! this really help!