Sunday 8 October 2017

polymorphism in ORM?

I'm a total newbie with just a small node/express/jade/mssql web app under my belt. To move away from raw SQL regardless of the DBMS I plan to use in future projets I've been looking at query builders like knex and entire ORMs like sequelize and bookshelf.As for ORMs, I've been researching and I can't find anything like polymorphism, by which I mean being able to define a model like "Document" and having "Invoice" and "Stock Movement" each extend Document. Does anyone know if this would even make sense?Also I plan on making my next app RESTful, so if anyone can vouch for a RESTful API tutorial out there I'd appreciate it!

Submitted October 08, 2017 at 06:21AM by nospambert

No comments:

Post a Comment