brikteknologier / seraph-model

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

Giving two types to a model #118

Open jnaoe opened 8 years ago

jnaoe commented 8 years ago

Hi.

Is there a way to give two types at the model creation, or even after, without making a query?

Thanks

StefanoDeVuono commented 8 years ago

I'm working on a branch right now that does just that, you pass a string or an array in as type. If you pass a string it stores it as an array. I changed type to types. Methods other than create use types[0] to, for example, generate names (aliases) when doing queries. Still a work in progress; looks doable.

jnaoe commented 7 years ago

Wonderful. Keep the good work!

Bernix01 commented 7 years ago

any update on this?

jonpacker commented 7 years ago

I'm not working on this in the main repo, so any update would have to come from @StefanoDeVuono.