The storefront api has changes about metafields that now work differently. The current shopify storefront api documentation handles the examples with the new version.