Shopify Functions adds support for variables in input queries
API
Effective January 26, 2023
Shopify Functions now support the use of variables in input queries, so that you can use merchant input for GraphQL field arguments.
Learn more about input query variables on Shopify.dev.