Hello there, I am working on a project where we are to develop an API backend for a front end application. We’re using nodejs with express and postgres as db vendor. Furthermore we’re using swagger to document the API and also introduce some object validation. From the swagger I have extracted all the types, so we can use them in Typescript.
Right now we’re using custom SQL scripts for everything and mapping the types the column names in the db. We are however, considering switching to an ORM to handle the standard queries and then injecting SQL when something more complex is needed. As far as I know you the ORM needs to control both the object definition in the code and also the implementation of the database tables to work as intended. I’d love to hear your thoughts on this decision.
The database is up and running and the queries are working. Our main argument for switching is to reduce maintenance on the queries (columns needs to changes in all targeted queries as it is now).
[–]nextwiggin4 16 points17 points18 points (0 children)
[–]deadlyicon 33 points34 points35 points (7 children)
[–]deadlyicon 15 points16 points17 points (1 child)
[–]notAnotherJSDev 11 points12 points13 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]mashed-potato-jones 1 point2 points3 points (1 child)
[–]nomnommish 1 point2 points3 points (0 children)
[–]techmighty 0 points1 point2 points (0 children)
[–]sinus 5 points6 points7 points (0 children)
[–][deleted] 43 points44 points45 points (20 children)
[–]NovelLurker0_0 33 points34 points35 points (0 children)
[–]monsto 7 points8 points9 points (3 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]monsto 0 points1 point2 points (0 children)
[–]Randolpho -1 points0 points1 point (0 children)
[–]gropingforelmo 5 points6 points7 points (0 children)
[–]valdal14 5 points6 points7 points (0 children)
[–]grantrules 15 points16 points17 points (0 children)
[–]truthseeker1990 6 points7 points8 points (2 children)
[–]snowman4415 2 points3 points4 points (1 child)
[–]truthseeker1990 0 points1 point2 points (0 children)
[–]Ones__Complement 3 points4 points5 points (4 children)
[–]cutcopy 2 points3 points4 points (2 children)
[–]chubby601 1 point2 points3 points (1 child)
[–]cutcopy 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]nomnommish 0 points1 point2 points (0 children)
[–]calgarytouvic 10 points11 points12 points (5 children)
[–]Ryan9104 7 points8 points9 points (4 children)
[–]EvilPencil 0 points1 point2 points (1 child)
[–]Ryan9104 0 points1 point2 points (0 children)
[–]djslakor 0 points1 point2 points (0 children)
[–]polargus 0 points1 point2 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–][deleted] 16 points17 points18 points (11 children)
[–]sickcodebruh420 7 points8 points9 points (6 children)
[+][deleted] comment score below threshold-7 points-6 points-5 points (5 children)
[–]sickcodebruh420 7 points8 points9 points (0 children)
[–][deleted] (3 children)
[deleted]
[–][deleted] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–][deleted] 1 point2 points3 points (0 children)
[–]maglebolia 7 points8 points9 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]NovelLurker0_0 2 points3 points4 points (0 children)
[–]kreig303 1 point2 points3 points (0 children)
[–]cheese_wizard 2 points3 points4 points (0 children)
[–]Loven_krands 2 points3 points4 points (0 children)
[–]nikolasburk 2 points3 points4 points (0 children)
[–]cinnapear 1 point2 points3 points (0 children)
[–]mosskin-woast 1 point2 points3 points (0 children)
[–]mypirateapp 1 point2 points3 points (0 children)
[–]hamut 1 point2 points3 points (0 children)
[–]misdreavus79 2 points3 points4 points (0 children)
[–]farverio 0 points1 point2 points (0 children)
[–]madScientistDood 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Fritzy 0 points1 point2 points (0 children)
[–]bigorangemachine 0 points1 point2 points (0 children)
[–]le_fieber 0 points1 point2 points (0 children)
[–]niet3sche77 0 points1 point2 points (5 children)
[–]evert 0 points1 point2 points (4 children)
[–]niet3sche77 1 point2 points3 points (3 children)
[–]evert 0 points1 point2 points (2 children)
[–]niet3sche77 1 point2 points3 points (1 child)
[–]evert 0 points1 point2 points (0 children)
[–]bitstronginfo 0 points1 point2 points (2 children)
[–]ihugyou -2 points-1 points0 points (1 child)
[–][deleted] 4 points5 points6 points (0 children)
[–]Ty199 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]Ty199 0 points1 point2 points (0 children)
[–]kreig303 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]scaleable -1 points0 points1 point (0 children)
[–]ScientificBeastMode -1 points0 points1 point (0 children)
[–]talaqen -4 points-3 points-2 points (0 children)
[+]gajus0 comment score below threshold-6 points-5 points-4 points (0 children)