A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi there
I've been using Shopify GraphQL Admin API (Version 2021/07) for my currently-developed app. I found a bug in your updated metafield apis.
It says here in the document that `Metafield` object now has `type` field, which used to be named `valueType` and `MetafieldInput` object has the same field as Metafield object. But when I try to update customer's metafield, it gives me an error saying `"message": "Value type is not included in the list"`. The actual query and response are below.
PS. sorry for not using code snippets, it gave me an error saying `contains invalid html so remove it`
```
But if you change the field `type` to `valueType`, which was previously used, in `MetafieldInput` like below, it goes successfully. It should have been solved before the release of version 2021/07 but now is in production.
```
{
"input": {
"id": "gid://shopify/Customer/nnnn",
"metafields": [
{
"namespace": "vip",
"key": "points_approved",
"value": "10000",
"valueType": "INTEGER"
}
]
}
}
```
Related documentations
https://shopify.dev/api/admin/graphql/reference/metafields/metafield
https://shopify.dev/api/admin/graphql/reference/metafields/metafieldinput
Looks like I should be using `type: integer_number` instead of `type: INTEGER`.
Can you please take a look at this thread, I think you are seeing the same issue: https://community.shopify.com/c/Shopify-APIs-SDKs/AdminAPI-REST-Reference-New-type-property-in-the-m...
To learn more visit the Shopify Help Center or the Community Blog.