hi everyone! does anyone have any example on how t...
# orm-help
d
hi everyone! does anyone have any example on how to implement file uploads with nexus-prisma? I am currently working on a new API (first time prisma user) and while most things work beautifully (using apollo server 2.0 instead of yoga though), I am not sure how to go on about doing file uploads with nexus
j
Using a scalarType from `nexus`(not
nexus-prisma
) you should be able to define
Upload
.
d
thanks! I'll look into it
🦜 1
w
You don't even need to use scalarType. Nexus supports native graphql-js types. Just add it to your
types
, and then use it anywhere in your nexus types