How fetch get shop alerts (using GraphQL) from dashboard ?

Highlighted
New Member
15 0 0

Hello,

I'm looking for way of getting shop alerts from shop dashboard.

Here is example of alert that im interested fetching:

Screenshot 2020-11-03 at 12.19.54.png

 

I do graphQL query on shop object

graph('
query {
shop {
alerts
{
action
{
title
url
}
description
}
}
}

 And response is empty:

"alerts":[]

(of course i can see it in dashboard so it is existing but they are not returned)

Im using api

2020-10

I refer to object described here

https://shopify.dev/docs/admin-api/graphql/reference/object/shop?api%5Bversion%5D=2020-10#alerts-202...

 

It will be perfect if someone could help me out on that problem.

Regards

0 Likes