Skip to content

aaronVerones/gql2sql

Repository files navigation

GQL2SQL

Description: https://wiki.ubc.ca/Course:GQL2SQL

Pre-requisites:

  • Stack

Setup:

git clone git@github.com:aaronVerones/gql2sql.git
cd gql2sql
stack build

Usage:

run:

stack build && stack exec gql2sql-exe <Path to .graphql file>

test: (also runs graphql-parser tests)

stack test

Notes for Developers:

  • 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 the vendor/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

Note

  • There are some bugs with the code gen, but this is only visit when generating the schema.graphql file.
  • All other files successfully codegen.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published