-
Hi! In a project I have something like this: // auth.ts
export default gql`
input AuthInput {
something...
}
`; // index.ts
const schema = gql`
type Query {
something...
}
`;
export default [schema, auth]; I have to do |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 |
Beta Was this translation helpful? Give feedback.
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 yourconfig
, it will import all your schema fromindex.ts
instead of extracting SDL.