Hi Thanks for your efforts
Actually what i need to do is
we have an application to show the nodes in an hairachy level(district-area-field-location) to the user based on his groups which are all connected to the nodes
Hairachy Nodes:
{
"Name":"HydDist",
"uid" : "01D"
"areaLink":{
Name:"HydArea",
"uid":"01A",
"fieldLink":{
"Name":"HydField",
"uid":"01F",
"locationLink":{
"Name":"HydLocation",
"uid":"01L"
}
}
}
}
so assume person have onegroup called orangegroup node which is connected to the top node district ,so final relationship will be
{
"Name":"orangegroup",
"uid" : "01OG",
"entitylink":{
"Name":"HydDist",
"uid" : "01D"
"areaLink":{
Name:"HydArea",
"uid":"01A",
"fieldLink":{
"Name":"HydField",
"uid":"01F",
"locationLink":{
"Name":"HydLocation",
"uid":"01L"
}
}
}
}
}
so when i query i can get the same hirachy which i want district-area-field-location
{
"Name":"HydDist",
"uid" : "01D"
"areaLink":{
Name:"HydArea",
"uid":"01A",
"fieldLink":{
"Name":"HydField",
"uid":"01F",
"locationLink":{
"Name":"HydLocation",
"uid":"01L"
}
}
}
}
now assume same person have another group called greengroup and its connected as follows
{
"Name":"greengroup",
"uid" : "01GG",
"entitylink":{
"Name":"HydField",
"uid":"01F",
"locationLink":{
"Name":"HydLocation",
"uid":"01L"
}
}
}
so when i query again for the same person i need to get the same hairachy with out duplicate nodes
district - area - field - location
person ->(orangegroup,greengroup) :
{
"Name":"HydDist",
"uid" : "01D"
"areaLink":{
Name:"HydArea",
"uid":"01A",
"fieldLink":{
"Name":"HydField",
"uid":"01F",
"locationLink":{
"Name":"HydLocation",
"uid":"01L"
}
}
}
}
Is that possible ?