Hi Sven,

Give this a try:

select from (select expand(out('hasModel')) from DocElem where type = 
"paragraph") where model like "%world%"

Feel free to ask if you need further help.

-Colin

Orient Technologies

The Company behind OrientDB



On Monday, April 13, 2015 at 10:46:44 AM UTC-5, Sven Hodapp wrote:
>
> Hi there,
>
> I'm experimenting with OrientDB. Now I want to do some queries with more 
> complexity.
> DocElem and Model are subclasses of V and hasModel of E, I'm assuming this:
>
>     insert into DocElem set uri = 'domain.tdl', type = "paragraph"
>
>     insert into Model set hash = '0e1f', model = "hello world"
>
>     create edge hasModel from #12:2738 to #13:2658
>
> Now reading the docs, tempted me to do a query like this:
>
>     select * from DocElem where type = "paragraph" and 
> out('hasModel').in.model like "%world%"
>
> What is my faulty reasoning? I'm using OrientDB 2.0.6.
>
> Thank you!
>
> Regards,
> Sven
>

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to