I'm a new app developer on Shopify and are using the Shopify node create command to build the apps. One of the most challenging things have been the lack of documentation to actually implement the features, especially in Node. The last step I'm on now is to implement webhooks. The folder structure when using the Shopify CLI command is as follows: server -> server.js, index.js, handlers -> client.js, index.js, mutations -> (mutations with graphQL). In the server.js file I understand one webhook gets created here
should I import and pass that function in the webhookHandler with the ctx argument?
Any help would be appreciated.
Also, are there updated docs of these that I just haven't found? I can only find deprecated ones on GitHub, but I mean c'mon, if that's the case then this is getting ridiculous in how badly documented this process is. If I'm in the wrong here, please guide me and I will be forever grateful!