Ответы получены от MySQL через X Protocol. Учебные коллекции после чтения удалены.
Документы и дополнительные наблюдения
{
"index_description": {
"fields": [
{
"field": "$.category",
"type": "TEXT(40)",
"required": true
},
{
"field": "$.price",
"type": "INT UNSIGNED",
"required": true
}
]
},
"before": [
{
"sku": "LAMP",
"price": 1200
},
{
"sku": "OLD",
"price": 99
}
],
"after": [
{
"sku": "LAMP",
"price": 1200
},
{
"sku": "OLD",
"price": 99
}
],
"create_return_type": "bool",
"duplicate_exception_chain": [
{
"class": "mysql_xdevapi\\Exception",
"code": 1061,
"message": "[1061][42000] Duplicate key name 'category_price'"
}
],
"dropped": true,
"drop_absent": false,
"drop_absent_warnings": [
"mysql_xdevapi\\Collection::dropIndex(): [1091][42000] Can't DROP 'category_price'; check that column\/key exists"
]
}
Полный JSON результата, включая реальные идентификаторы, сохранён рядом в result.json.