Skip to content

Generating SDL and automatic resolvers (for graphql-codegen use) #277

Closed Answered by TriPSs
lenybernard asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for your response even if I don't understand it 😄 and especially the autoSchemaFile: 'schema.main.gql' suggestion...

By doing this:

GraphQLModule.forRoot({
      autoSchemaFile: 'filename.gql'
})

A file name filename.gql will be generated that contains everything, this is also what I use to then generate my interfaces from (just like you).

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@TriPSs
Comment options

@lenybernard
Comment options

@lenybernard
Comment options

@TriPSs
Comment options

Answer selected by lenybernard
@lenybernard
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants