I'm under the impression that the result of builder.toSchema() used in conjunction with generateAllCrud(); should allow me to generate the relevant graphql-codegen files in my repo.
However when I run the codegen the contents of the generated schema.graphql is:
type Mutation
type Query
I assume I am missing something, it doesn't seem like the builder in the generateAllCrud function seem to contain the correct references to queryFields etc. Although the files and folders for them have been generated and are accessible ans present in the generateAllCrud file.
If you could point me in the right direction would be much appreciated!
Hello @drfarr , I don't know if I understood the problem right here
Does it mean that if generateAllCrud is called, the graphql-codegen doesn't work correctly? And does it work again if you comment generateAllCrud?
I'm under the impression that the result of
builder.toSchema()
used in conjunction withgenerateAllCrud();
should allow me to generate the relevant graphql-codegen files in my repo.However when I run the codegen the contents of the generated
schema.graphql
is:I assume I am missing something, it doesn't seem like the
builder
in thegenerateAllCrud
function seem to contain the correct references toqueryFields
etc. Although the files and folders for them have been generated and are accessible ans present in thegenerateAllCrud
file. If you could point me in the right direction would be much appreciated!codegen.ts
schema.ts
builder.ts
pothos.config.js