Bug when creating an edge

24 views
Skip to first unread message

Giraldo Rosales

unread,
Feb 7, 2014, 11:04:41 PM2/7/14
to orient-...@googlegroups.com
Looking at the documentation (https://github.com/orientechnologies/orientdb/wiki/SQL-Create-Edge), tried to create an edge in OrientDB Studio using the latest from the develop git branch. The database in the example below is the GratefulDeadConcerts database.

Ran the following to create a new edge:
CREATE EDGE followed_by FROM #9:7 TO #9:8

Ran the following to get the newly created edge:
select * from followed_by WHERE out=#9:7

The select query returns no results but the records, #9:7 and #9:8 both show an in/out property (in_followed_by and out_followed_by) had been created. Why is there no edge record created?

Thanks,
Giraldo

Andrey Lomakin

unread,
Feb 8, 2014, 2:54:36 AM2/8/14
to orient-database
Hi,
It is not a bug.
When you create edge without properties, you did not create document just a link between 2 vertexes.

If you wish to return edge run following query:
select outE(' followed_by') from #9:7





--
 
---
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-databa...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Best regards,
Andrey Lomakin.

Orient Technologies
the Company behind OrientDB

Andrey Lomakin

unread,
Feb 8, 2014, 2:55:41 AM2/8/14
to orient-database
Also do not use raw properties when you work with edge/vertex relations use graphdb functions outE(), out(), in() and so on...

Giraldo Rosales

unread,
Feb 8, 2014, 6:29:43 AM2/8/14
to orient-...@googlegroups.com

Great. Thanks for clearing up my confusion!! No wonder, I thought it was working before. I'll document this in the wiki page.

You received this message because you are subscribed to a topic in the Google Groups "OrientDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orient-database/BZxatd8BJHE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orient-databa...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages