Shopify Admin API GraphiQLとは? 使い方やメリット・デメリットを解説

What Is Shopify Admin API GraphiQL? How to Use It, Plus Its Advantages and Disadvantages

小笠原 京平

Shopify's Admin API includes an API that uses GraphQL.
An easy way to try it is an IDE called GraphiQL (note that it is GraphiQL, not GraphQL), so this article explains how to use Shopify GraphiQL and its advantages and disadvantages.

What is GraphiQL?

It is an open source project operated by GraphQL.
You can interactively work with and execute GraphQL in your browser.

It is pronounced Graphical (/ˈɡrafək(ə)l/). (The same pronunciation as graphical.)

What is GraphQL?

GraphQL is a query language for APIs and a runtime for running queries on existing data. GraphQL provides a complete and easy-to-understand description of the data in your API, empowers clients to request only what they need, makes it easy to evolve your API over time, and enables powerful developer tools.

Quote: GraphQL | A query language for your API

How to use Shopify GraphiQL

Shopify GraphiQL can be used by simply installing the app on each store, but there is a demo on the Shopify Dev site, so let's try it out first!

https://shopify.dev/docs/apps/tools/graphiql-admin-api

Let's try a workshop!

Shopify provides a workshop called Learn how to call the GraphQL Admin API.
Although it is in English, I highly recommend it because it provides step-by-step instructions from installing the Shopify GraphiQL app to running a simple query!

Learn how to call the GraphQL Admin API

Points to note about Shopify GraphiQL

There is one thing you need to be careful about when using Shopify GraphiQL.
It's about setting access privileges (scope) appropriately.

Shopify contains many types of data, and some data requires specific permissions to retrieve.
For example, product data has read and write permissions, and if you have read permission, you can view product data.

Using the Admin API allows you to retrieve and change various types of data in the store.
By granting appropriate permissions to the Shopify GraphiQL app, you can reduce the risk of deleting necessary data.

A safer approach is to avoid granting write permissions, grant only the necessary read permissions, and add permissions when needed.

Benefits of Shopify GraphiQL

Easily use the Shopify Admin API

As mentioned above, the biggest advantage of GraphiQL is that it is easy to try.
When using cURL or Postman, you need to obtain an access token.

Has powerful assistance features

It has autocomplete suggestions for objects and fields, which makes writing queries much easier.
You can also quickly reference documentation and format queries.

Disadvantages of Shopify GraphiQL

Not suitable for Shopify app development

As mentioned above, data in the Shopify Admin API has scopes that determine what can be accessed.
Some data can be retrieved from any app, while other data can only be accessed by the app that created it.
Because Shopify GraphiQL is used by installing an app, its access range is limited to the scopes that the Shopify GraphiQL app can access.
Therefore, data created by the Shopify app you are developing may not be accessible from GraphiQL.
When developing a Shopify app, it is more efficient to use something like Postman and access the Admin API with the access token of the app you are developing.
Please refer to this page for how to use Postman.
Run and manage Shopify Admin API queries with Postman

Sometimes the operation is a little unstable

There have been several times when the Shopify GraphiQL app crashed and became unusable.
(This may only occur with Partner accounts that manage multiple stores.)
If you uninstall and reinstall the app, you can use it again.
*This may have been fixed in the latest app.

Summary

This article explained how to use Shopify GraphiQL and its advantages and disadvantages.
It lets you use the Admin API easily, so please start by trying the demo or workshop.

👆️目次はShopifyアプリ「RuffRuff 目次作成」を利用

👆️Table of contents by the Shopify app RuffRuff Table of Contents

Back to blog
  • Shopifyで使える決済方法一覧|手数料・導入サービス・選び方

    [Complete Guide] A Roundup of Payment Methods A...

    Tsunライターチーム

    This article gives a detailed explanation of the many payment methods available on Shopify and their respective payment processing fees and transaction fees. We also introduce handy Shopify apps that...

    [Complete Guide] A Roundup of Payment Methods A...

    Tsunライターチーム

    This article gives a detailed explanation of the many payment methods available on Shopify and their respective payment processing fees and transaction fees. We also introduce handy Shopify apps that...

  • GMOイプシロンの手数料・決済方法・入金サイクル|Shopifyの条件も解説

    GMO Epsilon Fees, Payment Methods, and Payout C...

    Tsun ライターチーム

    GMO Epsilon payment methods and fees, organized by contract type. Covers Shopify-specific terms, payouts, authorization and capture deadlines, refunds, and cancellation. Also introduces ways to use apps to control which...

    GMO Epsilon Fees, Payment Methods, and Payout C...

    Tsun ライターチーム

    GMO Epsilon payment methods and fees, organized by contract type. Covers Shopify-specific terms, payouts, authorization and capture deadlines, refunds, and cancellation. Also introduces ways to use apps to control which...

  • Shopify向けSBペイメントサービス|対応決済・手数料・導入時の注意点

    SB Payment Service for Shopify: Supported Payme...

    Tsun ライターチーム

    This article organizes the payment methods and pricing available with SBPS for Shopify. Compare cost estimates that include fixed costs, authentication fees, and Shopify fees, along with capture deadlines and...

    SB Payment Service for Shopify: Supported Payme...

    Tsun ライターチーム

    This article organizes the payment methods and pricing available with SBPS for Shopify. Compare cost estimates that include fixed costs, authentication fees, and Shopify fees, along with capture deadlines and...

  • KOMOJUとShopifyの連携|決済方法・手数料・オーソリ期限

    Integrating KOMOJU with Shopify: Payment Method...

    Tsunライターチーム

    This guide lists the KOMOJU payment methods available on Shopify and their fees. It covers rates for physical goods and digital content, additional Shopify fees, setup steps, authorization periods, payouts,...

    Integrating KOMOJU with Shopify: Payment Method...

    Tsunライターチーム

    This guide lists the KOMOJU payment methods available on Shopify and their fees. It covers rates for physical goods and digital content, additional Shopify fees, setup steps, authorization periods, payouts,...

  • Shopifyのセキュリティ対策|決済・アプリ要件・バグバウンティ

    Shopify Security: Payments, App Requirements, a...

    Tsun ライターチーム

    For businesses considering Shopify, this article explains security safeguards for communications, customer information, payments, and apps, along with third-party assessments. Review the scope of protection, compensation requirements, operational preparations, and...

    Shopify Security: Payments, App Requirements, a...

    Tsun ライターチーム

    For businesses considering Shopify, this article explains security safeguards for communications, customer information, payments, and apps, along with third-party assessments. Review the scope of protection, compensation requirements, operational preparations, and...

  • Shopifyサーバーの費用・稼働率・障害時の対処法

    Shopify server costs, uptime, and how to respon...

    Tsun ライターチーム

    Shopify web hosting is included in the plan fee. This article organizes costs and the scope of management, the difference between official uptime figures and contractual guarantees, the checks to...

    Shopify server costs, uptime, and how to respon...

    Tsun ライターチーム

    Shopify web hosting is included in the plan fee. This article organizes costs and the scope of management, the difference between official uptime figures and contractual guarantees, the checks to...

1 of 6
  • AI仮想顧客の改善ツール「SimGym」を使ったら売上はどうなった?実行から3か月後までの記録

    What Happened to Sales After Using SimGym, an A...

    テキサス・アユミ

    A record of trying SimGym on the miso specialty store ドットミソ, from checking the proposals through carrying out changes to the look-back three months later. It covers how the order...

    What Happened to Sales After Using SimGym, an A...

    テキサス・アユミ

    A record of trying SimGym on the miso specialty store ドットミソ, from checking the proposals through carrying out changes to the look-back three months later. It covers how the order...

  • 【ストアインタビュー後編】やりながら育てるShopify。「野菜をMOTTO」の試行錯誤:モンマルシェ株式会社 河野雄士さん

    [Store Interview, Part 2] Building and Growing ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." An in-depth look at our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its...

    [Store Interview, Part 2] Building and Growing ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." An in-depth look at our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its...

  • 【ストアインタビュー前編】 ECが主戦場でも、ECが目的ではない。「野菜をMOTTO」が貫くEC戦略:モンマルシェ株式会社 河野雄士さん

    [Store Interview, Part 1] Even When E-Commerce ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." Part 1 of our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its e-commerce...

    [Store Interview, Part 1] Even When E-Commerce ...

    テキサス・アユミ

    "Even when e-commerce is the main battlefield, e-commerce isn't the goal." Part 1 of our interview with Yuji Kono of Mon Marché, whose brand "Yasai wo MOTTO" grew its e-commerce...

1 of 3
  • Our Editorial Process

    For readers new to e-commerce and Shopify, we write our articles with care to explain difficult commerce and marketing terms, along with how everything works from building a store through to selling, as “gently,” “clearly,” and “accurately” as we can.

    Learn more 
  • About the information on this site

    The information published here is based on Tsun Inc.’s own experience and research. While we make every effort to publish information that is as “current” and “accurate” as possible, we cannot fully guarantee its contents. Tsun Inc. accepts no liability whatsoever for any damages arising from this site. If you find an error in the information published here, we would be grateful if you would contact Tsun Inc.