brikteknologier / seraph-model

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

model.exists returning found object #124

Closed jnaoe closed 7 years ago

jnaoe commented 7 years ago

Hi. The documentation don't say much about what is return by exists doc Could it be possible to return the found object?

andyrichardson commented 7 years ago

Hi, I'm pretty sure exists returns a boolean. If you're looking to check if a node exists and return the found object, you're best to use the where function.