Jannis Pohlmann
10/19/2017, 12:43 PMapollo-codegen
to work with Graphcool. It looks like the recently added @module
directive (and @isUnique
as well) break it:
$ apollo-codegen introspect-schema <simple Graphcool endpoint> --output schema.json
$ apollo-codegen generate types.graphql --target ts --schema schema.json
.../types.graphql: Unknown directive "model".
.../types.graphql: Unknown directive "isUnique".
.../types.graphql: Unknown directive "isUnique".
joar
10/19/2017, 12:49 PMJannis Pohlmann
10/19/2017, 1:50 PMtypes.graphql
with @model
or @isUnique
.
I get the same error regardless of what I use for --target
.