私は次のクエリをしようとしている:。。。Grelexin Server(Titan 1.0)によるグループ化を頂点IDの根拠に基づいてグループ化できますか?
GV(835776)の.out( 'フォロー')( 'WallPost')の順序()( 'PostedTimeLong'、DECR).rangeによって(0同ポストは、それが応答で二回来ている二つの異なるIDが上に掲載されて
{ "requestId": "524462bc-5e46-40bf-aafd-64d00351dc87", "status": { "message": "", "code": 200, "attributes": { } }, "result": { "data": [ { "id": 1745112, "label": "Post", "type": "vertex", "properties": { "PostImage": [ { "id": "sd97-11ejc-2wat", "value": "" } ], "PostedByUser": [ { "id": "sc2j-11ejc-2txh", "value": "[email protected]" } ], "PostedTime": [ { "id": "scgr-11ejc-2upx", "value": "2016-06-19T09:17:27.6791521Z" } ], "PostMessage": [ { "id": "sbob-11ejc-2t51", "value": "Hello @[tag:Urnotice_Profile|835776|1] , @[tag:Abhinav_Srivastava|872488|1] and @[tag:Rituraj_Rathore|839840|1]" } ], "PostedTimeLong": [ { "id": "scuz-11ejc-2vid", "value": 636019246476802029 } ] } }, { "id": 1745112, "label": "Post", "type": "vertex", "properties": { "PostImage": [ { "id": "sd97-11ejc-2wat", "value": "" } ], "PostedByUser": [ { "id": "sc2j-11ejc-2txh", "value": "[email protected]" } ], "PostedTime": [ { "id": "scgr-11ejc-2upx", "value": "2016-06-19T09:17:27.6791521Z" } ], "PostMessage": [ { "id": "sbob-11ejc-2t51", "value": "Hello @[tag:Urnotice_Profile|835776|1] , @[tag:Abhinav_Srivastava|872488|1] and @[tag:Rituraj_Rathore|839840|1]" } ], "PostedTimeLong": [ { "id": "scuz-11ejc-2vid", "value": 636019246476802029 } ] } } ], "meta": { } } }
以降:、2)
と私は次のような応答を取得しています。私は頂点ID(両方とも同じ頂点IDを持っているか、どちらも同じものだけを持っているので、それらのうちの1つのオブジェクトを取得したい)に基づいてグループ化したい。
私は以下のクエリを試みたが、 :( 'WallPost')で
GV(835776)の.out( 'フォロー')GROUPBY {it.id} .ORDER()によって( 'PostedTimeLong'、DECR).range(0、。。。 3)
gV(835776).out( 'WallPost')。(ID).order()。by( 'PostedTimeLong'、decr).range(0) 、3)
頂点IDに基づいて結果をグループ化するにはどうすればいいですか? order().by()
とrange()
は効果がありませんが、