Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: List of tables for ShopifyQL

List of tables for ShopifyQL

dikeshj
Shopify Partner
5 0 0

Is there any reference documentation for tables and fields which can be used to query with ShopifyQL?

I could not find the list anywhere.

Replies 15 (15)

amitsamtani
Shopify Partner
4 0 0
dikeshj
Shopify Partner
5 0 0

Hi @amitsamtani,

 

I have seen this documentation but there is no list of table which is supported with ShopifyQL.

 

For example, here is the schema for sales table which can be queried as mentioned in this reference doc. But what are the other tables and their schemas?

amitsamtani
Shopify Partner
4 0 0

Hi @dikeshj, my apologies, didn't realize there was something called ShopifyQL. I assumed GraphQL. 

 

I have only played around with GraphQL until now and not ShopifyQL. I didn't see anything in the documentation for the tables you are looking for? 

 

Not sure if you can do what you want using GraphQL instead? If you are looking for order information, in this link you can see all the fields you want to query: https://shopify.dev/api/admin-graphql/2022-07/queries/orders

dikeshj
Shopify Partner
5 0 0

Hi @amitsamtani 

 

I have checked the GraphQL API but I am looking for aggregate data e.g. total sales, gross profile etc. date/month wise and ShopifyQL provides these metrics without iterating over each order data.

 Hence, using that ShopifyQL API.

Umiko
Shopify Staff
42 8 14

Hi @dikeshj 👋

 

You can find reference docs for ShopifyQL here and schema for aggregates data here as well. Hope that helps!

Umiko | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

dikeshj
Shopify Partner
5 0 0

HI @Umiko

Thank you for the reply.

 

I have already checked sales schema as mentioned in my previous comment. My question is what about the other tables and their schemas. Like visits, payments, etc?

Skrypt
Shopify Partner
6 0 1

Hi, I am also looking for this list, have you found anything ? Thanks

dikeshj
Shopify Partner
5 0 0

@Skrypt

Nothing yet.

Umiko
Shopify Staff
42 8 14

With ShopifyQL still in early release, only the sales table is accessible at this time. We're excited to see that there are lots of interested partners, and we recommend keeping an eye out on our changelog for the latest updates to ShopifyQL!

Umiko | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Skrypt
Shopify Partner
6 0 1

Hi, thanks for the reply. Do you have any idea of the period when the visits and pageViews tables will be available through ShopifyQL ? In the meantime, is there any other way to get the information from these tables ? (total_sessions, total_active_sessions, etc) 

hanawa
Shopify Partner
3 0 0

请问你是怎么处理的呢

junichiokamura
Community Manager
1201 280 510

Hi,  data sets might be your finding "table names" actually.

The examples on this page use the orders and products datasets in Shopify stores. For information about available metrics, dimensions, and aggregates, please refer to the orders datasetproducts dataset, or benchmark dataset.

https://shopify.dev/api/shopifyql/datasets/orders-dataset

 

Senior Partner Solutions Engineer

eivanovue
Tourist
9 0 9

Hi, up until recently, I was querying the sales table through ShopifyQL. However, currently, I get errors that the sales table does not exist anymore. Does anyone have more info on this? Is there an alternative, since the orders and product datasets do not provide me with all the information I need? 

ShopifyDevSup
Shopify Staff
1453 239 534

Hi @eivanovue

 

The sales table is no longer available through  ShopifyQL. Our references in the dev documentation outlines what datasets can be queried here.

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

shadowlessnotes
Tourist
7 0 11

is there any other way to access the sales table through API? I want sales by product and by customer type, which is no longer available in the orders and products dataset.