I notice that this question on StackOverflow is very similar (the same?) as 
what I am trying to achieve, but no satisfactory answer was provided. If my 
question was not clear, this may clarify my intent.

http://stackoverflow.com/questions/11360957/querying-an-embedded-list-in-orientdb

On Wednesday, January 15, 2014 11:06:46 AM UTC-5, Matthew wrote:
>
> I'm still ramping up on OrientDB and how to best query it. I basically 
> have a graph where the vertices have a property whose value is an embedded 
> list. The embedded list itself contains embedded maps.  
>
> I am having trouble figuring out how to query the maps within the embedded 
> list.  A simple java example is:
>
> // Create simple embedded map
> //
> Map<String, Object> map = new HashMap<>();
> map.put("propkey", "PROPVALUE");
>
> // Just add single embedded map to my list for now
> //
> List list = new ArrayList();
> list.add(map);
>
> OrientVertex v = graph.addVertex("class:Test");
> v.setProperty("listofmaps", list);
> graph.commit();
>
>
> Now my question is how to query with SQL the "Test" vertices where 
> "listofmaps" contains a map where "propkey = "PROPVALUE"?
>
> Thanks for your help.
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to