last day (20 days later) » 

4:13 PM
Hey Danny, how are you?
I'm not much of OrientDB person, but perhaps I can help you with NXRM questions
How can I help you?
 
 
2 hours later…
5:50 PM
Hey Dawid, thanks for joing this chat.
The question I have is actually about basic OrientDB relationships
As far as I understand, with LET and sub-query I define a variable, which stores a list of links.
But I cannot figure out how to dereference those links.
For example this gives me a link to the document which contains the content of the sub-query:
orientdb {db=component}> select first($repo) from asset let $repo = ( select @RID from bucket where repository_name = 'banknow-b2c-release' ) limit 1


+----+-----+
|#   |first|
+----+-----+
|0   |#-2:0|
+----+-----+
I can read the content via load record:
orientdb {db=component}> load record #-2:0


DOCUMENT @class:null @rid:#-2:0 @version:0
+----+----+-------+
|#   |NAME|VALUE  |
+----+----+-------+
|0   |RID |#11:313|
+----+----+-------+
But if I try to do that inside of the query, it fails:
orientdb {db=component}> select first($repo).value from asset let $repo = ( select @RID from bucket where repository_name = 'banknow-b2c-release' ) limit 1


+----+
|#   |
+----+
|0   |
+----+
 

  last day (20 days later) »