GraphQL missing fields compared to REST

JoshHighland
Shopify Expert
70 1 26

I might be late to the game on this one. Hopefully it's an easy answer.

 

I'm porting from REST to GraphQL and I'm discovering that REST returns more data than is available in GraphQL (or I'm not understanding GraphQL well enough)

 

Example:

From Shop you can get "phone" and "shop_owner"

 

https://help.shopify.com/en/api/reference/store-properties/shop#properties

 

With GraphQL, I can't figure out how to get these fields

https://help.shopify.com/en/api/custom-storefronts/storefront-api/reference/object/shop#fields

 

suggestions?

 

 

Josh
Shopify Staff
Shopify Staff
1131 82 198

Hey Josh, 

 

I don't think this is you not understanding well enough - looks like you're right. At this point I can only recommend using REST when you need to get those fields, but I'll ask around internally here and see if we can get those added. 

 

Thanks for pointing this out! 

0 Likes
Josh
Shopify Staff
Shopify Staff
1131 82 198

Hey again Josh, 

 

Just wanted to follow up on this with some additional information - I tracked down the phone number, it was hidden under the shop's billingAddress. Here's an example query that can grab that for you : 

 

{
  shop {
    name
    myshopifyDomain
    billingAddress {
      id
      phone
    }
  }
}

However, the 'shop_owner' isn't available right now - we're looking into rectifying that as we speak. 

JoshHighland
Shopify Expert
70 1 26

Awesome. Thank you!

0 Likes

I too am looking for shop_owner which was available in REST API but surprisingly missing from GraphQL. It has been several months since this issue has been brought to notice.. Any update on this?

Beautifully designed posts for social media. Inboxed daily!
Shopify App: Automatic Post Designer
Josh
Shopify Staff
Shopify Staff
1131 82 198

Hey guys, 

 

The shop owner information isn't available via GraphQL publicly right now because the way that it is used surfaces some fields that should not be available in a public API. This is still a work in progress, but please continue to check in here for any updates and I'll do my best to let you keep you both posted.

Connor_H
New Member
2 0 0

Is there any update on the availability of shop_owner in GraphQL?

0 Likes
florinanghel
Shopify Partner
128 17 23

Seems to be available on the graphql api https://shopify.dev/api/admin/rest/reference/store-properties/shop#properties , maybe you are looking at the storefront api.

0 Likes
Connor_H
New Member
2 0 0

That's the REST reference, I'm looking for it in GraphQL:

https://shopify.dev/api/admin/graphql/reference/store-properties/shop#fields-2021-07

It has fields for email and contactEmail, but nothing equivalent to shop_owner.

0 Likes