I often get asked questions about how to implement an authentication system for use in a frontend app relying wholly on GraphQL. There are divided opinions on whether you should keep authentication separate from the GraphQL API. To be honest, I don’t see a reason to do that. If you do authentication through a controller reached through a REST API or through the GraphQL Schema, it hardly makes any difference and if the frontend relies heavily on GraphQL, I don’t see a reason not to have the authentication part with it too.

Separating GraphQL Schema

The first thing to handling authentication through GraphQL…


Poolboy is a generic pooling library for Erlang (ergo Elixir). Since it is originally made for Erlang, you wouldn’t find a great set of documentation around how to use it on Elixir apps, and especially with Phoenix apps. If you know your way around Erlang, you can follow the wonderful documentation on their readme. If not, this post will try to explain just the basics of how you could get started and include this in your project.

First things first, do you need pooling? If you are spinning up processes that could take a while to run, you could soon…


I am part of a team where we are building a NextJS web app and not long ago, we were looking for deployment options. Since most of our infrastructure is on Heroku, this was the obvious first choice for us since the team had had good experience with it in the fast and we wanted to focus on keeping the dev-ops to a minimum. The main requirements for our app were that we were going to be using wildcard domains and we absolutely needed SSL for the app.

If there was a single domain, Heroku is pretty straightforward as SSL…


This is unlike any other Stephen King book I have read. All characters stay true to their character but they have a very thin or no backstory. The world is confined to a single kingdom with little to no magic except a single magician.

The story and writing style itself feels like a soap opera. Lot of talk about what’s coming next, but every chapter is just that, with very little actual content.

And finally, the ending, unexpectedly, is unlike other King novels as well. This means that it doesn’t feel expediated and sudden, but rather hangs on for quite a while.

Overall, I wouldn’t recommend this to anyone except the ardent King fans who would like this for the extended universe and shared characters rather than the storyline or the world.


What happens when a man decides to go against the very nature of the universe? When he tries to create life out of lifeless matter? Mary Shelley explores this concept in this novel and tries to bring out a series of events leading to the creation of such a being and the following his adventures as he travels the world in search of company.

The premise sounds great, but the execution is far from it. The events seem contrived and a lot of things happen without any logic to them. I know fantasy is about believing in things out of…


The train stopped at the platform creating a hubbub on the station. It was the busiest station for the train with more than ninety percent passengers bound to this one. Trains are always a center for buzz. There are the one time travelers and tourists who are arriving at a new place and are in a hurry to get off to their respective hotels and accommodations. Then, there are the day workers who have arrived for a day’s work in the morning to the big city. …


Image of FitzChivalry by chazillah

Those in power can sometimes find themselves so utterly out of it that it suddenly makes them feel as helpless as a corpse buried twelve feet under the ground. And, sometimes those without any power at all can move mountains.

After a quick turn of events at the end of the previous book in the series, this one brings everything back into motion, albeit at a much slower pace than the previous one. We get to know more about the world of the Six Duchies and glimpses of that of the Outislanders. The relationships between the Six Duchies in terms…


Part 1

I think I owe an update to everyone who read my previous post about the cats. Everyone I narrated the story to has thought that I was dreaming about the cats when there were none. If you have been following me on Instagram, you already know that the cats are real. For those of you who aren’t — well, the cats are real. I have pictures of them. Even videos! And I have had my friends see them for themselves and they seconded my initial opinion about how cute they are. …


It all started a month ago, the first time I saw them. They were all so small, so fluffy and so cute. I even joked about how I would love to shelter and feed them inside my home. Now that I think about it, it all seems so naïve. How could I not have seen it, seen them for what they were?

The one that I saw the first was the cutest of the lot. Almost the same size as my shoes, those tiny paws, the solid light fur on its body and big round eyes that seemed to encompass…


What is War but a collision of two powers in quest of more, a quest that often leads into the opposite instead? Death of thousands, the proliferation of property and infrastructure, destruction of the very soil that gives us life, all to a false end. Yet, we have seen countless of these in the past.

What drives men to flock together, gather in hordes to kill fellow human beings? What conspires in the minds of the dictators, generals, and rulers? What, if anything, leads to a war in the first place? This book explores this and more. …

Pulkit Goyal

I am a software developer with a focus on Elixir, Ruby and React. I build things and write stuff.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store