codegen-assets icon indicating copy to clipboard operation
codegen-assets copied to clipboard

accept a list of Hasura types so that graphql-code-generator does not error out

Open wawhal opened this issue 4 years ago • 0 comments

Actions support postgres scalars now (https://github.com/hasura/graphql-engine/pull/4333).

This causes a problem in typescript codegen because graphql-code-generator expects the SDL to be complete in itself.

Currently we have a hack to make the codegen work. The SDL is parsed and the types not found in the SDL are manually added as scalars.

A better solution would be to take Hasura scalars as an argument for the code generator.

wawhal avatar Apr 13 '20 11:04 wawhal