Hello,
Can someone help me with a cypher query for getting the last node of type Event starting from a given node of type Workspace (with all relationship types).
For example: i know the node A and now i want to find out the last node of type event (here events are shown in purple) that is appended to node A => see below screenshot, where i marked the node i want to get.. It must be possible to get this with a cypher query..
[
{
"keys": [
"n"
],
"length": 1,
"_fields": [
{
"identity": {
"low": 0,
"high": 0
},
"labels": [
"Workspace"
],
"properties": {
"wId": {
"low": 1,
"high": 0
},
"name": "A"
},
"elementId": "4:48516dce-44fb-4c7f-abd7-ee80b757d2ac:0"
}
],
"_fieldLookup": {
"n": 0
}
},
{
"keys": [
"n"
],
"length": 1,
"_fields": [
{
"identity": {
"low": 1,
"high": 0
},
"labels": [
"Event"
],
"properties": {
"elementId": {
"low": 12345,
"high": 0
},
"name": "ElementCreate"
},
"elementId": "4:48516dce-44fb-4c7f-abd7-ee80b757d2ac:1"
}
],
"_fieldLookup": {
"n": 0
}
},
{
"keys": [
"n"
],
"length": 1,
"_fields": [
{
"identity": {
"low": 2,
"high": 0
},
"labels": [
"Event"
],
"properties": {
"elementId": {
"low": 12346,
"high": 0
},
"name": "PropertyCreate"
},
"elementId": "4:48516dce-44fb-4c7f-abd7-ee80b757d2ac:2"
}
],
"_fieldLookup": {
"n": 0
}
},
{
"keys": [
"n"
],
"length": 1,
"_fields": [
{
"identity": {
"low": 3,
"high": 0
},
"labels": [
"Event"
],
"properties": {
"elementId": {
"low": 12347,
"high": 0
},
"name": "PropertyAdd"
},
"elementId": "4:48516dce-44fb-4c7f-abd7-ee80b757d2ac:3"
}
],
"_fieldLookup": {
"n": 0
}
},
{
"keys": [
"n"
],
"length": 1,
"_fields": [
{
"identity": {
"low": 4,
"high": 0
},
"labels": [
"Workspace"
],
"properties": {
"elementId": {
"low": 12349,
"high": 0
},
"name": "B"
},
"elementId": "4:48516dce-44fb-4c7f-abd7-ee80b757d2ac:4"
}
],
"_fieldLookup": {
"n": 0
}
},
{
"keys": [
"n"
],
"length": 1,
"_fields": [
{
"identity": {
"low": 5,
"high": 0
},
"labels": [
"Event"
],
"properties": {
"elementId": {
"low": 12350,
"high": 0
},
"name": "ElementCreate"
},
"elementId": "4:48516dce-44fb-4c7f-abd7-ee80b757d2ac:5"
}
],
"_fieldLookup": {
"n": 0
}
},
{
"keys": [
"n"
],
"length": 1,
"_fields": [
{
"identity": {
"low": 6,
"high": 0
},
"labels": [
"Event"
],
"properties": {
"elementId": {
"low": 12351,
"high": 0
},
"name": "PropertyAdd"
},
"elementId": "4:48516dce-44fb-4c7f-abd7-ee80b757d2ac:6"
}
],
"_fieldLookup": {
"n": 0
}
}
]