diff options
| author | Alon Levy <alon@pobox.com> | 2014-12-22 20:20:52 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-22 20:20:55 +0200 |
| commit | 89be53c7ebc6d05b3c7bd0ad2ef435b0630a5ca4 (patch) | |
| tree | 001150322df7cbc858aca7997475de361a960f20 /src/client/util.js | |
| parent | 631e00d723b0b54c61b94f6c06ae4a73e1770c25 (diff) | |
server: link attribute updates
Tested for name changes only, with the next commit's client side change.
Notes:
uses more than a single query to change each link's name. Since we use
label's, and neo4j is finniky about them, we must:
1. create a new link with copied properties (for future proofing, we use
none at the moment)
2. delete the old link.
Cannot do those in the same statement, the following results in a Neo4j
error:
match a-[l]->b create a-[l2:Poo]->b set l2=l delete l
"errors": [
{
"code": "Neo.DatabaseError.Statement.ExecutionFailure",
"message": "Relationship 13 has been deleted",
"stackTrace": <snip>
}
]
Diffstat (limited to 'src/client/util.js')
0 files changed, 0 insertions, 0 deletions
