A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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 ?
Solved! Go to the solution
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
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
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?
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