Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

New validations on function input query variables metafields

As of 2025-01, input query variables metafields will now be subject to additional validation across all Function APIs.

Previously, if these metafields didn't contain properly formatted data, we treated them as empty. This could lead to situations where it was difficult to determine why a function wasn't receiving the expected input data.

Now, an invalid metafield will result in an InvalidVariableValueError when attempting to run the function.

For more information, refer to the list of errors.

Was this section helpful?