What About the Database? How to Write Efficient Queries for GraphQL Resolvers (RYAN CHENKIE)
Вставка
- Опубліковано 5 вер 2024
- When writing GraphQL servers, we often place a lot of emphasis on how to craft good resolvers. However, we don't often think about how to create good database queries to furnish the data for those resolvers. Let's look at how it's easy to fall into the trap of writing inefficient database queries and how we can use GraphQL itself to solve this problem.
Resources:
Learn more about Summit - summit.graphql...
Explore the GraphQL FAQs - www.apollograp...
Checkout the Apollo docs - www.apollograp... - Наука та технологія
Great info & talk from Chenkie as always, thankyou!
Dont know if you guys gives a damn but if you're bored like me during the covid times then you can watch pretty much all of the new movies and series on Instaflixxer. Been streaming with my gf for the last months xD
@Connor Uriel definitely, have been watching on Instaflixxer for since december myself :D
so... basically it means that we can just write one single global resolver to parse any GQL-query to SQL-query for a project of any scale (whether we have 1 table in database or 1000), doesn't it? It sounds weird... Not only we have one entry point for the whole API (the opposite of REST-full API), but even a resolver can be one for all?
P.S. I mean at least for getting data from a database, not mutating it
Great Explanation of Abstraction related stuff.
Awesome info about the AST
Nice presentation 👏
Please add the links to the video information.
what about deep nested query??
Graphql should be used in very specific circumstances , replacing Rest with it is making just a dirty mess !