code: public static String printAstCompact(Node node) {
          StringWriter sw = new StringWriter();
          printImpl(sw, node, true);
          return sw.toString();
      }
docs: This will print the Ast node in graphql language format in a compact manner, with no new lines
  and comments stripped out of the text.
  
  @param node the AST node to print
  
  @return the printed node in a compact graphql language format