2017-01-10 9 views
0

Orient db 2.1.12 (DocumentDB) 버전을 사용하십시오. 연결된 목록 열을 확장 할 때 발생하는 문제.OrientDb의 연결된 목록 열을 확장하십시오.

: 내 orientdb 쿼리의 결과 :있는 TestSuite 에서 * 예상 출력을 선택 위의 결과를 얻기 위해 사용되는 또 다른 class.The 쿼리 제거로

{ 
    "result": [ 
     { 
      "@type": "d", 
      "@rid": "#28:0", 
      "@version": 7, 
      "@class": "testSuite", 
      "testSuiteName": "web", 
      "testCaseLink": [ 
       "#20:0", 
       "#20:1", 
       "#20:2", 
       "#20:3", 
       "#20:4", 
       "#20:5" 
      ], 
      "testingType": "Web", 
      "@fieldTypes": "testCaseLink=z" 
     } 
    ], 
    "notification": "Query executed in 0.061 sec. Returned 1 record(s)" 
} 

testCaseLink 값과 연결리스트의 한 속성입니다

{ 
    "result": [ 
     { 
      "@type": "d", 
      "@rid": "#28:0", 
      "@version": 7, 
      "@class": "testSuite", 
      "testSuiteName": "web", 
      "testCaseLink": [ 
       { 
        "@type": "d", 
        "@rid": "#20:0", 
        "@version": 5, 
        "@class": "testCase", 
        "name": "testForBAsu", 
        "uiJson": "#18:0", 
        "testcaseType": "webWithCsv", 
        "isEdited": false, 
        "isDeleted": false, 
        "childtestCaseLink": [ 
         "#20:3", 
         "#20:4" 
        ], 
        "@fieldTypes": "uiJson=x,childtestCaseLink=z" 
       }, 
       { 
        "@type": "d", 
        "@rid": "#20:1", 
        "@version": 6, 
        "@class": "testCase", 
        "name": "success", 
        "uiJson": "#18:1", 
        "testcaseType": "WebWithoutCsv", 
        "isEdited": true, 
        "isDeleted": false, 
        "eeJson": "#19:0", 
        "parentTestCaseLink": null, 
        "@fieldTypes": "uiJson=x,eeJson=x,parentTestCaseLink=x" 
       }, 
       "#20:2", 
       "#20:3", 
       "#20:4", 
       "#20:5" 
      ], 
      "testingType": "Web", 
      "@fieldTypes": "testCaseLink=z" 
     } 
    ], 
    "notification": "Query executed in 0.061 sec. Returned 1 record(s)" 
} 

목록에서 현재 제거를 확장해야합니다. testSuiteName = '웹'

그러나 쿼리 만 testCaseLink.Note을 확장 곳 피곤 선택 testSuiteName, testingType가있는 TestSuite에서 (testCaseLink)를 확장 :

답변

1

당신은

를 사용할 수 testCaseLink가 다른 클래스를 제거 포함
select from testSuite FETCHPLAN *:1 

자세한 내용은 documentation을 확인하십시오.

희망이 있습니다.

0

select testSuite FETCHPLAN * : 1