4 ms·
Even though this is true, there can still be a lot of value in certain scenarios. For instance, this is why I use GraphQL strictly in my admin backends. Exposi
by cersa8 4y ago
Even though this is true, there can still be a lot of value in certain scenarios.
For instance, this is why I use GraphQL strictly in my admin backends. Exposing the database almost verbatim through Postgraphile as an Express.js middleware. All data is now trivially accesible. Everything that requires custom resolvers or other complex customisations are handled over a Rest endpoint. I now have all the benefits of GraphQL without the complexities you face when moving into more edge case scenarios.
In pretty much the same way I use Prisma ORM but raw queries for anything non trivial.
- robertlagrant 4y agoSure - anything that's basically generated dynamically off the database structure will work well, although you can also get auto-rest generators that would have a similar productivity effect.