Network access for Shopify Functions

Shopify Partner
3 0 1

I would like to implement time-limited sales validation in checkout using shopify function.


I need to use product metafields to store the dateTime object that represents the end time of the sale.

Shopify functions input graphQL can use dateTimeAfter() function, but currently, product metafields cannot be used for its parameter.


Then, I have just found information about network access for shopify function, and I wonder if it's possible to obtain product metafields using fetch target and pass the value to Input Query as parameter of dateTimeAfter().


My client strongly demands this type of validation.

I hope I can get some possible solutions for this.






Replies 0 (0)