GraphiQL Export

Highlighted
New Member
22 0 0

I added the GraphiQL app to my store but don't see how to export the result of a query. How is this done and what, if any, formats are available.

Do I need to write a program on my computer to make an http request and get JSON back to accomplish this?

0 Likes
Shopify Partner
1841 170 512

Hi David,

Could you please provide a link to the GraphiQL app? I am not aware or cannot find any Shopify app that wraps GraphiQL browser.

Thanks!

I turn coffee in to code - since 1998
0 Likes
New Member
22 0 0
0 Likes
Shopify Partner
1841 170 512

Ah cool, thanks. Okay, so that basically gives you GraphiQL from within your store admin to explore the API. But it is just that, for exploring.

I usually prefer to explore using Playground or Insomnia as they offer much more and no need to install an app to clutter your admin.

But to use any of those GraphQL queries and their results, you will need a server application that has access to the endpoints using the key and pwd you setup in your private app or app. Unless you're using Storefront API where you can access via key alone and use a browser based GraphQL client library.

Hope this helps (or adds to the confusion :D )

I turn coffee in to code - since 1998
0 Likes
New Member
22 0 0

So to access shopify data I would need a program on my computer that makes an http request or use Playground or Insomnia?

Can Playground or Insomnia allow me to retrieve and download data to my computer or format a report?

Where would I find the key and pwd?

0 Likes
Shopify Partner
1841 170 512

Urm... David, I appreciate your curiousity here, but all of this is documented either by Shopify or documentation of the tools mentioned above. I suggest brewing a bucket full of coffee and reading... a lot :)

I turn coffee in to code - since 1998
0 Likes
New Member
22 0 0

We just set up a store and it sounds like there's a LOT to learn. Thanks for all your comments.

0 Likes
Shopify Partner
1841 170 512

Keep on it and enjoy. If you run in to any sort of trouble with some specific problem, the forum can help.

Best wishes

I turn coffee in to code - since 1998
0 Likes
Shopify Partner
17 0 4

David, although GraphiQL can be used in the way you described (querying for data as a store owner) it is, like Karl mentioned, just for exploring the API and should not be seen as a data mining / exporting tool. 

If you would like to use the API properly (without writing applications) you will have to:

1) get authentication credentials (investigate Private Apps)
2) Use some flavor of an API Dev Environment (ie: Postman) to make your API requests using the relevant endpoints. (investigate API authentication headers)

This will always return results in JSON format. If you require the data in any other format, you will need to do additional processing yourself. This is best accomplished by building / having an app built to suit your requirements. Working with pure JSON as a store owner is messy and I would strongly advise you to approach an app developer instead. 

Web development using (primarily) CakePHP. Trying my hand at Shopify Apps.
0 Likes
Shopify Partner
1677 42 140

We just set up a store ....

even though this is the api subforum, that seems conflit with the opening post

I added the GraphiQL app to my store but don't see how to export the result of a query. How is this done ....

So sidestepping graphql for a moment, what data are you trying to get and why? what are you trying to accomplish

Problem Solved? ✔️Accept the solution so you can help others.
Confused? Busy? ? Get me to solve it paull.newton+shopifyforum@gmail.com.
Buy me a coffee? ☕ paypal.me/paulnewton or donate to eff.org
0 Likes