For anyone following this <https://codesandbox.io/...
# orm-help
p
For anyone following this https://codesandbox.io/s/6w7581x05k example but wants to use javascript with babel instead of typescript, you need to 1.) append
--js
to your
nexus-prisma-generate
command in
prisma.yml
and 2.) in
schema.js
replace
__dirname
with
path.resolve(__dirname)
. I almost gave up on
prisma-nexus
until I figured this out. Took me a while to find the fix so I wanted to share.
👍 1