Do you use GraphQL?
Katya Prusakova
3 replies
Is it feature overkill to use GraphQL to query db? If yes why? If not why?
Replies
Ben Syverson@bensyverson
Launching soon!
This is anecdotal, but having worked with a variety of development partners over the past 10 years, it seems like the trend for green-field projects is away from GraphQL and back to simple REST. There was quite a spike back around 2017β2019.
Personally it has always seemed like an abstraction that makes it hard to reason about the underlying database queries and optimize them. But that could very well be a gap in my own experience or knowledge!
Share
Quorini
Using GraphQL to query a database directly can be overkill for simple apps because it adds complexity, performance overhead, and requires more sophisticated caching!
It's most useful in cases with complex UIs, multiple data sources, or dynamic querying needs. For basic CRUD operations, REST or direct database queries are simpler and more efficient.
Launching soon!
GraphQL can seem like using a bazooka to kill a fly for simple queries, but it really shines with complex data needs. Plus, if it can help Her Ideal Match figure out what women really like, it might just help you get the data you need, too!