Closed lfritsche closed 2 years ago
Based on the current docs https://shopify.dev/api/liquid/objects/metafield#deprecated-metafields I wondered why this sample app is using the deprecated json_string. https://github.com/Shopify/product-reviews-sample-app/blob/ab5e5f09e76d83b950e02f4ae8b649455a0a694c/server/handlers/mutations/add-review.js#L36
json_string
Could this be because the 2019-10 API version only supports the old types? https://github.com/Shopify/product-reviews-sample-app/blob/ab5e5f09e76d83b950e02f4ae8b649455a0a694c/server/handlers/client.js#L5
Can I use the new json type the same way json_string is used in this example?
json
Thanks!
This issue was addressed in #61
Based on the current docs https://shopify.dev/api/liquid/objects/metafield#deprecated-metafields I wondered why this sample app is using the deprecated
json_string
. https://github.com/Shopify/product-reviews-sample-app/blob/ab5e5f09e76d83b950e02f4ae8b649455a0a694c/server/handlers/mutations/add-review.js#L36Could this be because the 2019-10 API version only supports the old types? https://github.com/Shopify/product-reviews-sample-app/blob/ab5e5f09e76d83b950e02f4ae8b649455a0a694c/server/handlers/client.js#L5
Can I use the new
json
type the same wayjson_string
is used in this example?Thanks!