queries product options optionValues instead values not work

Topic summary

A developer is encountering an error when attempting to migrate from the deprecated values field to the recommended optionValues field in a product options query.

Issue Details:

  • The API documentation indicates that values is deprecated and optionValues should be used instead
  • After making the change, the query returns an error: “Field ‘optionValues’ doesn’t exist on type ‘ProductOption’”

Current Status:

  • The error suggests the optionValues field is not recognized in the schema
  • The issue remains unresolved with no responses or solutions provided yet
  • This appears to be a potential API documentation inconsistency or version compatibility problem
Summarized with AI on November 5. AI used: claude-sonnet-4-5-20250929.

optionValues
non-null

The corresponding option value to the product option.

Show fields

values
non-null
deprecated

The corresponding value to the product option name. Use optionValues instead.

按照文档修改后返回错误:

{
“errors”: [
{
“message”: “Field ‘optionValues’ doesn’t exist on type ‘ProductOption’”,
“locations”: [
{
“line”: 8,
“column”: 7
}
],
“path”: [
“query details”,
“product”,
“options”,
“optionValues”
],
“extensions”: {
“code”: “undefinedField”,
“typeName”: “ProductOption”,
“fieldName”: “optionValues”
}
}
]
}