Query Works in GraphiQL but not Fetch

meisenhaus
New Member
2 0 0

Hi there,

looking for support on this issue...

When I fetch this query I get the error message: "Field 'shareableUrls' doesn't exist on type 'DiscountCodeBasic'"

It works well in GraphiQL. GraphiQL was given read/write for Discount as was the private app. The private app is pointed at the Admin API

```

{
node(id: "${some_gid}") {
... on DiscountCodeNode {
codeDiscount {
__typename
... on DiscountCodeBasic {
shareableUrls {url}
title
summary
codes(first: 5) {
edges {
node {
code
}
}
}
}
}
}
}
}

```

0 Likes
meisenhaus
New Member
2 0 0

For some additional context, this also does not work in Postman.

0 Likes
_JCC_
Shopify Staff
Shopify Staff
158 21 27

Hey @meisenhaus,

I apologize for the lateness in my reply. I had started my response on forgot to submit it.

What api-version are you making for these requests? The shareableUrls field was added in 2020-10.

If you're using version 2020-10 or later and still have the issue please provide a x-request-id from the response headers associated with API request.

Regards,
John

John C | Developer 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

0 Likes