DEV Community

5 GraphQL Interview Questions and Answers You Should Know

Alex πŸ‘¨πŸΌβ€πŸ’»FullStack.Cafe on July 14, 2018

GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understan...
Collapse
 
bgadrian profile image
Adrian B.G.

Nice.

When I first read about GraphQL, when FB made it open source, I remember they had a cache solution, that kept all the records, and it had a push-update cache mechanism, meaning when the servers mutated the data it updated the GraphQL cache too.

I presumed it was in all implementations, what happened to that?

Collapse
 
omerg profile image
Omer Gurarslan

Could it be dataloader?

github.com/graphql/dataloader

Collapse
 
whoisryosuke profile image
Ryosuke

Short, concise, and perfect πŸ‘ŒπŸ‘

Collapse
 
liuderchi profile image
TC Liu

Thanks for sharing! Really helpful for interviewees.

Collapse
 
samarpanda profile image
Samar Panda • Edited

Server side caching for GraphQL: How about caching it behind resolvers? Again it depends on us whether we need to club multiple resolver to cache it with one key or multiple. So, i don't think caching is an issue when it is related to server-side.

Yes, i agree that REST is more intuitive to handle. As this is what we have been handling pretty long time now. In case of GraphQL it has a different way.