Description: https://wiki.ubc.ca/Course:GQL2SQL
- Stack
git clone git@github.com:aaronVerones/gql2sql.git
cd gql2sql
stack build
run:
stack build && stack exec gql2sql-exe <Path to .graphql file>
test: (also runs graphql-parser
tests)
stack test
- The Hasura GraphQL parser is in the
vendor
directory. There's no documentation for it, so you'll have to figure out how it works by looking at the code, specifically thevendor/graphql-parser-hs/src/Language/GraphQL/Draft/Syntax.hs
file - The entrypoint for the app is
app/Main.hs
- Tests are in
test/Spec.hs
- The schema the program parses is given in the first argument to the gql2sql-exe program.
- Example schemas can be found in test/resources/gql
- Dope GQL stuff
- There are some bugs with the code gen, but this is only visit when generating the schema.graphql file.
- All other files successfully codegen.