Hello there :slightly_smiling_face: little questio...
# graphql-nexus
m
Hello there 🙂 little question about
@nexus/schema
. If you look at
outputs.typegen
typedoc in SchemaConfig (makeSchema function param) it says "Set to true to enable and emit into default path ... The default path is node_modules/@types/nexus-typegen/index.d.ts." but if I set the value to
true
instead of a path (like
___dirname +_ '/../node_modules/@types/nexus-typegen/index.d.ts'
), it generates nothing. I am doing something wrong or is it normal ?
r
The path in the doc might be incorrect. It generates here. In
node_modules/@types
In fact, it’s a typo. Will be fixed soon 🙂
m
Hello @Ryan, I'm not talking about
typegen-nexus-plugin-prisma
but
typegen-nexus
. As you can see on my screenshots typegen is only generated by nexus-plugin-prisma but not nexus/schema itself
r
Yes because in this case
nexus-plugin-prisma
would generate the types. For
@nexus/schema
the directory is correct, but when you’re using
nexus-plugin-prisma
the directory will change.