3 ms·
How did you build an ORM on top of MongoDB? And why?
by chris_wot 13y ago
How did you build an ORM on top of MongoDB? And why?
- annnnd 13y agoSorry, poor choice of words... I have build an ORM on application level above MongoDB. This level lets me specify data model in a simple JSON and the system then automatically performs all (high-level) data input validations, displays a proper web form to the user,... There are actually many similar systems to mine, I just couldn't find one that would offer all the functionalities I needed. Note that DB is just a storage for me. It can't know enough to validate for example e-mails, because for DB they are just strings.
- chris_wot 13y agoThat's not an ORM, that's a data abstraction layer.
- annnnd 13y agoIt's actually both. Term "data abstraction layer" describes its function while term "ORM" describes how it is done. Unless I am misunderstanding these terms? But we are going a bit off-topic here. :)
- chris_wot 13y agoAn ORM maps a relational database to objects. Given MongoDB is most definitely not relational, you can't have implemented an ORM :-)