ardeois / graphql-codegen-typescript-mock-data

[GraphQL Codegen Plugin](https://github.com/dotansimha/graphql-code-generator) for building mock data based on the schema.
MIT License
133 stars 47 forks source link

Add config for prefixing types #29

Closed RicardoTrindade closed 4 years ago

RicardoTrindade commented 4 years ago

Related with: https://github.com/ardeois/graphql-codegen-typescript-mock-data/issues/28

Allows adding a prefix to the generated types, useful when your types are globally exported (i.e when using the generator add plugin) so you don't need to import them into your files and can call them directly.

@ardeois let me know if implementation looks ok, I can add a couple more tests and then update the README

RicardoTrindade commented 4 years ago

Build seems to be failing due to npm being down :(

RicardoTrindade commented 4 years ago

Updated readme and tests. Build should be green but the CI is failing with

Error uploading workspace archive: AccessDenied: Access Denied
    status code: 403, request id: 458839DA71F13E12, host id: s9mwcdA8T5lhi01fpqIRpJBa/OQOPgMZ/5KiaAOzv1rqLZh4Kb41IieldfY92n/QMZ22mkxrSxw=