Skip to content

Generate file for each type for server development #4922

Answered by dotansimha
Fabyao asked this question in General
Discussion options

You must be logged in to vote

Hi! Currently, we don't support that. This could be done with a custom preset for codegen - you can break your schema to smaller pieces and feed it back to the typescript plugin.
Please note that we try to avoid these kind of solutions intentionally, since maintaining multiple files is far more complex, and it might cause issues like circular imports and dependencies.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JaffParker
Comment options

@dotansimha
Comment options

Answer selected by dotansimha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants