Translatable resource deleted event

Solved

Translatable resource deleted event

dmytrop
Shopify Partner
3 0 0

I am building a localization app. This app uses external service to do actual translation. 

It stores translatable content in own database. 
Question is how app can check if content is deleted? 

I see query https://shopify.dev/docs/api/admin-graphql/2023-04/queries/deletionEvents but it only returns products and collections. 
Is there any query to fetch deletions of any translatable content listed here  https://shopify.dev/docs/api/admin-graphql/2022-10/enums/TranslatableResourceType ?

Accepted Solution (1)

ShopifyDevSup
Shopify Staff
1453 238 498

This is an accepted solution.

Hi @dmytrop 👋

 

As you mentioned, the `deletionEvents` object only supports products/collections at this time. If this is only needed on occasion, you can use a bulk query to fetch all products and their translated content to determine the missing values. We understand it's not ideal, and we'll let the product team know it would be valuable to support types in the `deletionEvents` query. 

 

 

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

View solution in original post

Replies 3 (3)

ShopifyDevSup
Shopify Staff
1453 238 498

This is an accepted solution.

Hi @dmytrop 👋

 

As you mentioned, the `deletionEvents` object only supports products/collections at this time. If this is only needed on occasion, you can use a bulk query to fetch all products and their translated content to determine the missing values. We understand it's not ideal, and we'll let the product team know it would be valuable to support types in the `deletionEvents` query. 

 

 

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

dmytrop
Shopify Partner
3 0 0

If product team decides to implement new types for 'deletionEvents' can you please post an update on this topic. 
Re-fetching all content is acceptable but very inefficient. I'll hit rate limits often.
Is it possible to increase rate limit points for specific app? 

ShopifyDevSup
Shopify Staff
1453 238 498

Bulk queries are async by design and they aren't subject to the same rate limits as standard queries. Shopify’s infrastructure does the hard work of executing your query, and then provides you with a URL where you can download all of the data.

 

We let the product team know your use-case, and the best way to be updated with any new features is via the developer changelog 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