Sorry, my bad.  I must have misread that about INVERSE but I see it 
everywhere here...  [5,4010 results for "orientdb create edge inverse"]

>From your post "Create Link should support edges too #2045 
<https://github.com/orientechnologies/orientdb/issues/2045>"

The best syntax in my head is:
>
> CREATE EDGE <edge-class> CONNECTING <from-class>.<from-field> TO 
> <to-class>.<to-field> [INVERSE]
>
>
> Example:
>
> CREATE EDGE e CONNECTING comment.postId TO post.id INVERSE
>
> and then there was a discussion...

 * enisher <https://github.com/enisher> * commented on Feb 18, 2014 
> <https://github.com/orientechnologies/orientdb/issues/2045#issuecomment-35368881>
>  
>

Does the INVERSE controls the direction of edge? In this case isn't it 
simpler just swap arguments and don't use extra keyword?


* lvca <https://github.com/lvca> * commented on Feb 18, 2014 
> <https://github.com/orientechnologies/orientdb/issues/2045#issuecomment-35369026>
>  
>
 Yes, this is the meaning. That keyword is needed because we'd browse 
comment class records and for each postId we lookup into the post.id index 
and if found we connect them. So we need a keyword to create the edge at 
the opposite sense but not for scanning, just when we create edge.
 

----------

>From "NullPointerException creating Edge 
<https://groups.google.com/forum/#!msg/orient-database/RRl7KGbuZwQ/u-93zwKZ1xIJ>"
 


CREATE EDGE E TRANSFORM comment.postId TO post.id INVERSE
>
>


*>> Q1: does it apply to creating LINKs?*From "Problem with/understanding 
the tutorial 
<https://groups.google.com/forum/#!msg/orient-database/ZwVVvvl69KI/YOxXY0oqwngJ>
"

CREATE LINK comments FROM comment.postId To post.id INVERSE 
>



PS  INVERT was a typo in my message, sorry about that.


On Thursday, June 4, 2015 at 10:47:41 PM UTC+3, l.garulli wrote:
>
> Hi,
> Sorry but INVERT and INVERSE was never part of CREATE EDGE command!
>
> Best Regards,
>
> Luca Garulli
> CEO at Orient Technologies LTD
> the Company behind OrientDB <http://orientdb.com>
>
>
>

-- 

--- 
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