[英]Gremlin query how to compare properties of edges in same branch of my traversal?
[英]Gremlin query returning graph traversal instead of edges
我有一個圖,其中一些頂點彼此有邊(父母和孩子)。 基於這個問題
這就是我的代碼的樣子
const showAllRelationships = async (target)=> {
var result = await g.V(target).bothE().otherV().path().by(__.valueMap(true));
console.log(result);
return result;
};
這就是我得到的結果。
GraphTraversal { graph: Graph {}, traversalStrategies: TraversalStrategies { strategies: [ [RemoteStrategy]
] }, bytecode: Bytecode { sourceInstructions: [], stepInstructions: [ [Array], [Array], [Array], [Array], [Array] ] }, traversers: null, sideEffects: null, _traversalStrategiesPromise: null, _traversersIteratorIndex: 0 }
這段代碼沒有返回邊緣有什么問題?
您需要在查詢末尾添加一個終端步驟,以便將查詢發送到服務器: https://tinkerpop.apache.org/docs/3.4.9/reference/#terminal-steps
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.