問題タブ [azure-cosmosdb-gremlinapi]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
1480 参照

gremlin - gremlin QL を使用して、すべての子頂点とそのエッジ (両方のプロパティ) を再帰的に取得するにはどうすればよいですか?

以下のクエリを見つけました。これは、特定の単一の頂点のプロパティとともに、すべての子頂点とエッジを取得するのに最適です

ただし、上記を再帰的に行うにはどうすればよいですか。つまり、特定の頂点に対して、すべての子を通過し、各 (頂点) とその出力エッジをすべてのプロパティ (頂点とエッジ) と共に返します...つまり何か上記と同様ですが、見つかった子頂点ごとにループします....グレムリンを使用してそれを行う方法はありますか?