Skip to content

Instantly share code, notes, and snippets.

@yojimbo87
Created April 26, 2013 17:37
Show Gist options
  • Save yojimbo87/5468940 to your computer and use it in GitHub Desktop.
Save yojimbo87/5468940 to your computer and use it in GitHub Desktop.
OrientDB construct custom nested/embedded object inside select projection
orientdb> select map('name1', out[0].in.name, 'name2', out[1].in.name), name from person
---+---------+--------------------+--------------------
#| RID |map |name
---+---------+--------------------+--------------------
0| #-2:1|{name1=julia, name2=mary}|george
---+---------+--------------------+--------------------
1 item(s) found. Query executed in 0.04 sec(s).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment