Webhooks filtering

Hi, Quick question - I want to keep a api scope but do not want the webhook. how can I go about that?
I am assuming api scope is required for any graphql queries to Shopify and it defines what we can access etc. But I do not need the webhooks data or that data to be synced or stored in Shopify models? Is there an easy way to do that? Thanks in advance.
No description
9 Replies
Chocci_Milk
Chocci_Milk2mo ago
Hello, If you don't select models, you won't automatically get webhooks. The scope alone doesn't mean that you register webhooks
Gaurav Agarwal
Gaurav AgarwalOP2mo ago
Thanks but I see only one way to register scopes and models. Is there a way to only select scope and not model?
No description
Chocci_Milk
Chocci_Milk2mo ago
If you still want webhooks, you can also add webhook filtering (Shopify functionality): https://docs.gadget.dev/guides/plugins/shopify/shopify-webhooks#applying-a-webhook-filter
Chocci_Milk
Chocci_Milk2mo ago
What you've done by clicking read and nothing else is selecting the scope and no models
Gaurav Agarwal
Gaurav AgarwalOP2mo ago
Oh nice.. Got it.. if I unselect the model here and push it to production, will it delete that table from my code and associated data with it?
Chocci_Milk
Chocci_Milk2mo ago
No, the data and the model will stay in your code. we don't delete anything without your explicit input
Gaurav Agarwal
Gaurav AgarwalOP2mo ago
Got it. Last question, if I delete shopifyCustomer model in Development and remove teh data model and push it to produciton will all production data of shopifyCustomer be deleted as well?
Chocci_Milk
Chocci_Milk2mo ago
Yes, the data would be delete (not immediately though). If you find that you need to get the data back, if you revert your change, and have the same storage keys in the schema, you'll have the data back
Gaurav Agarwal
Gaurav AgarwalOP2mo ago
Thank you so much for this detailed info. Thanks

Did you find this page helpful?