All posts

Notes and Scribblings from a web developer with unhealthy interests in JavaScript, GraphQL, and others

  • Published on
    ·
    Reading Time
    11 min read
    This post gives an introduction to GraphQL directives, how to create custom ones, explains the different locations where directives can be used, and goes over some use-cases of directives.
  • Published on
    ·
    Reading Time
    17 min read
    GraphQL excels in modeling data requirements. Modeling errors as schema types in GraphQL is required for certain kinds of errors. In this post, let's analyze some cases where errors contain structured data apart from the message and the location information.
  • Published on
    ·
    Reading Time
    13 min read
    In this post, I'm going to use some features of TypeScript that are often considered "advanced". In the first section, I'll mention most of the TypeScript features I'm going to use and also point to their documentation for references. The post is about how we can get stricter types for Object Paths for different use-cases.
  • Published on
    ·
    Reading Time
    6 min read
    If you've some file committed to a git repository, and you'd like to remove it, simply deleting the file and committing it again will not remove the file completely. It still lies in the git history. If you want to remove a file from git history, the history needs to be re-written. This post is about exactly doing that - rewriting git history such that the file to be removed stays removed.