{
"data": {
"metafieldDefinitionUpdate": {
"userErrors": [
{
"field": [
"definition"
],
"message": "The capability admin_filterable is not valid for this definition."
}
],
"updatedDefinition": null
}
},
Also note the example in the linked dev doc has two typos that would not work on the 2024-10 API. “adminFilterStatus” is not supported in the response params, and “type” is not allowed in metafield definition updates.
Excellent, thanks Jesse! I can appreciate needing to time and prioritize things I hope to see number_integer in the near future, ideally with support for less than and great than options in addition to the current checkbox “is equal” version.
Also, fyi the smartCollectionCondition works great, but one thing that seems off is the condition is not applied until you save and reload or come back into the collection. Perhaps that is already on your radar, but wanted to mention it in case you were not aware.
And lastly, one capability that’d be super powerful is the ability to use a metafield value for custom sorting, in case you don’t have that on your list yet.
Yes, please expand the types available for the filtering.
Also, a bit of off-topic but:
It would be great to understand which fields can be used natively (https://shopify.dev/docs/api/usage/search-syntax) title, created_at, orders_count, first_name, where can I check which fields are available?