Building graphql APIs have been easy now with all the libraries and online communities around graphql but there must be some questions in your mind. Like how do we actually secure our server, how do we restrict or whitelist only certain queries to run on our server? Now, if you have ever used graphql you might be aware of the graphql query loop. Let’s see an example. { author{ name books{ name author{ books{ name author{ name } } } } } } Now, do you see any issue with the above query type?

Continue reading

This blog is a part of 2 part series, you can find the part one where we create the backend server here. Additionally, you can find the code for the entire tutorial here. In the previous part of this blog series, we discussed why graphql is great and how it can help us minimize the data we download and make it minimal by only requesting the data we need. So let’s start building a lightweight frontend and see how we can use Apollo Client to make our react application more efficient.

Continue reading

This is a two-part series. In part one we will learn what graphql is and what are some of its advantages and build a backend using graphql. In part two we will learn to integrate our graphql backed to our react frontend service using Apollo Client. Graphql has been around for quite some time now and we often think that graphql is some complex thing but in reality, all graphql is a specification of how the data will be exchanged between the server and the client over the HTTP.

Continue reading

With ES6, EcmaScript releases a new way of working with the functions. In this article we will take a look at them and how and where we can use them What are the generator functions? Generator functions are a special type of function which allows you to suspend their execution and later resumed at any time. Thye have also simplified the creation of iterators but we will get into that later.

Continue reading

Author's picture

Sachin Thakur

Full Stack Web Developer and a big time JavaScript and Open Source Enthusiast.

Software Developer

Bangalore