Skip to content

Is it possible to merge schemas automatically without specifying an array in codegen.yml? #4295

Answered by ardatan
Drakota asked this question in General
Discussion options

You must be logged in to vote

By default, Codegen parses the code file to extract GraphQL SDL first. If there is no SDL found, it imports it as a Node module . As I see, you want to skip the first behavior. So if you add noPluck: true to your config, it will import all your schema from index.ts instead of extracting SDL.

Replies: 1 comment 2 replies

Comment options

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

@ardatan
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
2 participants