What About the Database? How to Write Efficient Queries for GraphQL Resolvers (RYAN CHENKIE)
Vložit
- čas přidán 5. 11. 2019
- 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.com/
Explore the GraphQL FAQs - www.apollographql.com/docs/re...
Checkout the Apollo docs - www.apollographql.com/docs/ - Věda a technologie
Great Explanation of Abstraction related stuff.
Awesome info about the AST
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
Nice presentation 👏
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
what about deep nested query??
Please add the links to the video information.
Graphql should be used in very specific circumstances , replacing Rest with it is making just a dirty mess !