답변

1

그 일에 대해 갈 수있는 몇 가지 방법이 있지만 가장 직접적인 경로의 graphSource을 제공하는 'A'executeGraphqueryOptions 매개 변수입니다. 원본 'a'는 DSE 그래프와 통신하여 OLAP 탐색 소스 (source)를 사용합니다.

const client = new Client({ 
    contactPoints: ['127.0.0.1'] 
    profiles: [ 
    new ExecutionProfile('olap', {graphOptions: {source: 'a'}}) 
    ] 
}); 

client.executeGraph('g.V().count()', null, { executionProfile: 'olap' }, function (err, result) { 
}); 
:

또는
client.executeGraph('g.V().count()', null, {graphSource: 'a'}, function (err, result) { 
    // process result 
}); 

, 당신은 OLAP 쿼리를 실행하기 위해 재사용 할 수있는 클라이언트 초기화에서 ExecutionProfile을 정의 할 수 있습니다