To add into this, This works fine if I work through Orinetdb Studio but 
create problem through REST API Only. 

Are these API's not upgraded ?

Thanks in advance

~Munish

On Tuesday, May 6, 2014 5:34:03 PM UTC+5:30, Munish Chopra wrote:
>
> Hi,
>
> I am using orinetdb 1.7-rc2 and need some information about cleanup of 
> edges. I have a user and group vertex and using an edge to link users with 
> the group.
>
> I am creating user as 
> insert into user set name = 'test'
>
> and similarly group as
> insert into group set name = 'test_group'
>
> Now if a user wants be a part of group, I am using an edge to link them
>
> create edge userIngroup from user to group;
>
>
> My edge has following properties as, I dont't want multiple edges between 
> same vertexes
>
> 'CREATE PROPERTY UserInGroup.in LINK Group',
> 'CREATE PROPERTY UserInGroup.out LINK User',
> 'ALTER property UserInGroup.out MANDATORY=true',
> 'ALTER property UserInGroup.in MANDATORY=true',
> 'CREATE INDEX UniqueUserInGroup on UserInGroup(out, in) UNIQUE',
>
>
> Now if I delete a vertex either by using "delete from" or "delete vertex", 
> it does not remove the edge.
> Lets say I executed
> delete vertex user where name = 'test'
>
> The edge still remains but if I execute
> select expand(in('UserIngroup')) from group
>
> It gives an error.
>
> SEVE Internal server error:
>
> java.lang.NullPointerException [ONetworkProtocolHttpDb]
>
> How can I remove all the edges when a vertex is deleted. Can this be 
> handled through orinentdb
>
> P.S: I am using Orientdb REST API to execute these sql
>
> Regards,
> Munish
>

-- 

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