T
Twenty2mo ago
TimM

Code Examples for Workflows

Are there any code examples that anyone has shared for the Code Workflow action? Specifically I'm curious how I should go about accessing the GraphQL API from a Code action. I'm very familiar with GraphQL from having worked a lot with Shopify, but I'm not so familiar with how to use it in this environment. For instance, should I just hardcode my API key into the code? Side note: I can access quite a few useful variables via process.env, even though shows an error in the code editor.
2 Replies
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
@Baptiste Devessier could you take a look please?
thomast
thomast2mo ago
Hi, there are no code examples for now AFAIK. You will have to hardcode your API key into the code indeed

Did you find this page helpful?