profusion / sgqlc

Simple GraphQL Client
https://sgqlc.readthedocs.io/
ISC License
513 stars 85 forks source link

Fix/codegen operation #126

Closed barbieri closed 3 years ago

barbieri commented 3 years ago

Fix issues with the code generator.

One issue was introduced by #123, the other is the handling of aliases which was mutating the frozen list.

Operations codegen now also generates simpler code by using top level variables _schema and _schema_root.

Fix __to_graphql_input__ when variables are used for list types, this was reported in #125 as well.

Setup CI so more tests are done, avoiding bugs such as introduced by PR #123.

Fixes: #125

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 267


Totals Coverage Status
Change from base Build 174: 0.0%
Covered Lines: 1468
Relevant Lines: 1468

💛 - Coveralls