Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のようにすべての bookName を収集したいとします。
x = g.V.has("books").bookName
それは出力を次のように示します:
=>Groovy =>Java =>Oracle
..
上記から次の方法でリストを作成したい:
x = ["Groovy","Java","Oracle"]
リストをさらに反復できるように、上記のリストを作成する方法は?
toList() メソッドを使用できるため、クエリは次のようになります。
x = g.V.has("books").bookName.toList()