In our previous article, we only talked about the basic query and how it is being parsed to build an AST object. In this article, we are going to understand how variables, directives, and parameters are being parsed. Consider the following query, Here we added the variables, $after that…