Tools

Diana provides the Parser and the Lexer of the graphql for anyone to create their own tools and implementations

The lexer is built based on the Tokenize package code and the Parser on the graphql-js package. Thanks people.

Parser

using Diana

Parse("""
      #
      query {
        Region(name: "The North") {
          NobleHouse(name: "Stark") {
            castle {
              name
            }
            members{
              name
              alias
            }
          }
        }
      }
      """)

result:

Lexer

result:

Last updated

Was this helpful?