I am developing an app theme extension and need it to be able to set a customer metadata. It cannot do that directly, as that requires admin API, so aI need a way to communicate from the extension to a webpage running on my infrastructure, which would contact the graphQL admin API to do the actual mutation to set the value of the metadata field.
How should I set up that webpage for access by the theme extension? I have installed node.js on my desktop (development server) and have a page which does the mutation, using fetch and express. However, express wants to set up a “server” using “listen”, and I do not understand how my theme extension should interact with that “server”.
App proxy? I can not seem to connect the dots.
Can you please direct me to some instructions that would get me past this hurdle? Assistance / direction would be much appreciated.