我有一个具有ORDER BY子句的命名查询:ORDER BY在命名查询不工作
`query OrdersByRequesterSort {
description: "Select all orders by requester"
statement:
SELECT org.test.sample.Order
WHERE (requester == _$requesterParam)
ORDER BY [placeTimestamp DESC]
}`
这是我的查询,我在这里看到后patterened:
https://hyperledger.github.io/composer/reference/query-language.html
当我尝试执行此查询时出现以下错误:
`
{
"error": {
"statusCode": 500,
"name": "Error",
"message": "Error trying to query chaincode. Error: chaincode error (status: 500, message: Error: http: read on closed response body)",
"stack": "Error: Error trying to query chaincode. Error: chaincode error (status: 500, message: Error: http: read on closed response body)\n at channel.queryByChaincode.then.catch (/Users/bower/.nvm/versions/node/v6.3.0/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:779:34)"
}
}`
上午我做错了什么?这是否支持?
在此先感谢。