我收到以下代码错误:
这是代码,我需要这个方法来返回最大值吗?它是 IEnumerable 还是 int?
public IEnumerable<int> GraphGetMaxVersion(IEnumerable<Node<VersionNode>> nodeId)
{
IEnumerable<int> nodes = null;
clientConnection = graphOperations.GraphGetConnection();
var query = clientConnection
.Cypher
.Start(new
{
n = nodeId
})
.Return((maxVersion) => new
{
MaxVersion = Return.As<int>("max.Version")
});
nodes = query.Results;
return nodes;
}
这是我要执行的查询:
START n=node(2,3,4)
RETURN max(n.property)