Closed JosephScript closed 8 years ago
I'm running Neo4j v2.3.2 on Node v5.7.0.
I cloned the repo and tests run fine, so it's not my versions.
For now I made a workaround where I just use excludeCompositions: true
, and save the composed models in a second and third query. Inefficient and ugly, but it's working at least.
If anyone can help me track down the source of these extra nodes I'd very grateful!
Hey dude, are you still having this problem? It's super strange. I copied and pasted all your code and ran it locally, and I didn't get any ghost nodes at all:
{
"uuid": "e335be61-7193-4f4a-bb51-daa19f0f1b64",
"updated": 1469793669046,
"created": 1469793669046,
"name": "Gandalf the Grey",
"id": 173714,
"characterClass": {
"uuid": "43e59500-ddf5-4e1e-8d54-8233102e4360",
"updated": 1469793669046,
"created": 1469793669046,
"name": "Wizard",
"id": 173718,
"spells": [
{
"uuid": "67289a0f-f81b-43d8-a48a-2636b04afa1b",
"updated": 1469793669046,
"created": 1469793669046,
"name": "Flood",
"id": 173715,
"_rel": {}
},
{
"uuid": "b4a4dedb-6ca3-4e22-b1ce-750dd0578d89",
"updated": 1469793669046,
"created": 1469793669046,
"name": "You shall not pass!",
"id": 173717,
"_rel": {}
},
{
"uuid": "5ea96971-cfcd-4722-a970-e3699d130cb3",
"updated": 1469793669046,
"created": 1469793669046,
"name": "Fireworks",
"id": 173716,
"_rel": {}
}
],
"_rel": {}
}
}
seraph-model@0.8.3 seraph@0.15.2
Please reopen if you're still having problems with this!
Thanks @jonpacker for checking into it. I ended up disabling save with compositions, and then manually created the relationships using seraph.relate
. I've also since then updated seraph and seraph-model. I will try it out later and if it's still an issue I'll let you know. But since you got it to work, I'll assume it is fixed for now.
Thanks again.
I have a few objects that are composed. When I save them I'm getting weird empty duplicates that don't seem possible. I'm wondering if I'm doing something wrong?
character.js
characterClass.js
spells.js:
This is the actual save function:
Everything works as expected, except I get weird empty nodes in the result:
Any ideas? Thanks in advance!