brikteknologier / seraph-model

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

model.merge #100

Closed eloyleonardo closed 8 years ago

eloyleonardo commented 9 years ago

Why merge operation isn't available ? In the write.js have a task to do that, but it isn't expose in the model, has another way i can do that ?

My problem is, i have a composition, in same cases i need to save all items, and in same cases if the item already exists i like to just make the relationship (not update the target node). Has another way to do that ? Thanks

jonpacker commented 8 years ago

If I'm understanding you correctly, this is a different issue to #103? I'm not entirely sure what you mean by making a new relationship if the item already exists. Is it such that you want to save a new relationship to a node that is already composed on your model, so that the node is composed twice?

jonpacker commented 8 years ago

Maybe it would help if you could give me some examples of what you want to be able to do :)

jonpacker commented 8 years ago

Going to assume that this is covered by #103.