DEV Community

Discussion on: Use Prisma with a NestJS GraphQL Server

Collapse
 
jclmaq profile image
JCM

Hi, I get the following error with postgress DB :
src/graphql.schema.d.ts:127:52 - error TS1016: A required parameter cannot follow an optional parameter.
127 abstract executeRaw(database?: PrismaDatabase, query: string): Json | Promise;

With Mongodb, non error.

By the way, thanks for this exemple.

Collapse
 
aryanjnyc profile image
Aryan J

What version of typescript is compiling your code? Were you able to get this tutorial to work? thewebdevcoach.com/stand-up-a-node...

Collapse
 
jclmaq profile image
JCM

package : "typescript": "3.6.3".
I did not try your final app. I did follow step by step your tutorial except for the DB. I did use dockercompose from Prisma to create the db on localhost:4466.
As I did tel it in my second post, after deleting the "rawAccess: true" line in the dockercompose file, the error desappear.

Thanks a lot for your response and the tutorial.

Thread Thread
 
aryanjnyc profile image
Aryan J

That's great. It brightens up my day to hear this helped!