Closed lucasbento closed 7 years ago
Can't we generate all that needs to be imported automatically?
@sibelius: no because some mutations might not need those types to be imported.
E.g. mutations without any required fields.
that's why I said automatically
automatically -> detect which types are being used and then import them
That's what this is supposed to do but doesn't seem to be doing its job so well.
add a test case
We need to improve this: https://github.com/lucasbento/create-graphql/blob/master/packages/generator/src/mutation/index.js#L32-L51