Use variables in input queries

You can use variables in the GraphQL input query of your function. This allows a function to have merchant configured values used as the variables for your input query. For example, you can use these variables to check if a product is inAnyCollection or hasAnyTag to add custom logic to your function.

The values for the input query variables can be set when creating a function owner. Variables allow you to customize the data requested by your input query, which is used as input to your function.