Is there some way I can use Prisma, Typescript and...
# orm-help
d
Is there some way I can use Prisma, Typescript and graphQL without having to write the schema 3 times?
p
afaik you should only need to write it once, in the
schema.prisma
file
prisma client then generates the typescript boilerplate so you can use in your code and integrate with your GraphQL library of preference
d
Thanks, but all it's doing is generating some .js files
p
it also generates
index.d.ts
files in your
node_modules/@prisma/client
folder
d
Yeah. Missed that.
r
For GraphQL, you can use this.
d
I still have to write the GraphQL though?
OK, thanks
a
I would be great if there a spread sheet like interface in the prisma studio to generate/manage schema file.
a field to enter the column name and a corresponding dropdown to select the datatype
p
should probably forward this to #prisma-studio
a
Too many schemas. Too much of cognitive load