brikteknologier / seraph-model

thin model layer for seraph/neo4j (node.js)
MIT License
111 stars 28 forks source link

Model.push fails on model with unique key causes Neo.ClientError.Statement.ParameterMissing #132

Open pbaize opened 6 years ago

pbaize commented 6 years ago

Using Seraph 0.9.1

Trying to push a new composition onto a model with a unique constraint. The variable shell (in saveComposition) passed into cypherCommit strips out everything except the root's id, causing a missing parameter error because compose.merge then looks for said unique key and returns undefined.