I'm trying to query custom fields using commerce tools. given an object as below
{
[...]
"custom": {
"type": {
"key": "my-category"
},
"fields": {
"returns": [
{obj: {readStatus: "random"},
{travelDestination:"randomTravelDestination"}
],
"description": "example description"
}
}
}
I can easily get for example, the description value with a simple query:
custom(fields(description="example description"))
docs: https://docs.commercetools.com/api/projects/custom-fields.
However, how would I write a query to obtain the value for readStatus
. I'm specifically trying to see how to query the content inside an array with multiple values?