Re:PostGraphile Instant GraphQL API for PostgreSQL Database
by piaste on Monday January 15, 2018 @04:16PM
(#16153529)
You're thinking of code-first ORMs (to use the EF terminology), where you write classes and the tool maps them to tables and queries.
These GraphQL tools, however, act a lot like a database-first ORM, where you provide a database and the tool generates code in a different paradigm (OO for ORMs, Graph QL here). It is indeed the opposite direction, but ORMs can work that way too.
Re:PostGraphile Instant GraphQL API for PostgreSQL Database
by SwellJoe on Tuesday January 16, 2018 @01:08AM
(#16156182)
Yeah, I guess GraphQL is delivering JSON "objects". Nonetheless, developing for it is a completely different experience from any other ORM I've ever poked at (not saying it's better, just very different).
This is kinda the opposite of an ORM. Nearly everything is in the database and this is a wrapper that allows you to build your app in your database.