It is possible to find a field in an array without knowing the path

23 views
Skip to first unread message

Academia Learning Centro de inglés y de formación

unread,
Nov 30, 2016, 6:50:43 AM11/30/16
to OrientDB
I need to retrieve all Compositions that have the temperature field but do not get their path since they are inside nested arrays


Academia Learning Centro de inglés y de formación

unread,
Nov 30, 2016, 7:11:03 AM11/30/16
to orient-...@googlegroups.com
I have tried with any() but not working

Ivan Mainetti

unread,
Nov 30, 2016, 5:02:47 PM11/30/16
to OrientDB
could you add examples of query you tried?

Academia Learning Centro de inglés y de formación

unread,
Dec 1, 2016, 2:50:36 AM12/1/16
to orient-...@googlegroups.com
Yes, 

select from CompositionsVersions where any() like '%temperature%'

But as the field is inside a value json does not find it, I have tried with fields / properties that are not in a json value and if it works
Reply all
Reply to author
Forward
0 new messages