Home
Mahendran
Cancel

GraphQL backend — token expiry

In the previous post we covered authentication and role management. However, it assumed any invalid session to be a visitor instead of throwing 401—Unauthorized client error. This post covers the t...

GraphQL backend — authorization & authentication

Background In any system where users interacting with each other, authorization & authentication are the key elements that controls what each user can do. To read more on authentication and au...

LeetCode — Median of Two Sorted Arrays

Problem definition is here. Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. Sample inputs What is median? Draft Hypo...

Kotlin solution for the longest Substring Without Repeating Characters

For problem definition head over to leetcode problem#3. For a given string, we need to find the length of the longest substring. Listed few sample input and outputs below for understanding. Max(...

GraphQL backend — pagination & filters

Background Pagination and filters are the much needed components when it comes to listing. They not only narrow down the list for the user, but improves load time and save user from scanning throug...

GraphQL backend — data loaders

In the previous post, I created a FatExpense object and added manual checks to avoid fetching Account entity. If we’re scanning the selection manually and write our own check, what’s the role of Gr...

GraphQL backend — nested objects

A nested object is like a Matryoshka doll where one object placed inside another and you can choose to not open the next level — a perfect usecase to demonstrate the power of GraphQL. In this post...

Quickguide to intellij live template

LiveTemplate is a feature in Intellij based IDEs where you can expand a code snippet by typing an abbreviation and the IDE guide your cursor through the parts that need your attention (a variable n...

A perfect setup for my Github pages project

I hosted my blog in github pages and one thing was constantly bugging me. How can I efficiently get more with writing way less? And focus on the content rather than things like image hosting or pre...

GraphQL backend — update & delete

In the first installment, I covered create and read operations to the Expense entity. Now let’s add few more operations ⇨ update and delete queries. Entire source code is available in github. For ...