https://serverless-stack.com/ logo
#help
Title
# help
l

leonard

03/29/2022, 1:38 AM
Hi, is there a guide to use an orm for aurora postgres?
t

thdxr

03/29/2022, 1:39 AM
are you using our RDS construct?
l

leonard

03/29/2022, 2:00 AM
Yes @thdxr
t

thdxr

03/29/2022, 2:19 AM
we recommend using
kysely
- we don't have a guide on it yet but you can see a sample setup here https://github.com/serverless-stack/graphql-stack/blob/main/backend/core/sql.ts
l

leonard

03/29/2022, 2:23 AM
Nice, thank you, these definitely helps.
s

Sam Hulick

03/29/2022, 7:16 PM
@thdxr nice! I’ve been using knex all this time. it’s just ok. I’ll have to check out kysely
r

Rob N

03/29/2022, 9:37 PM
We are using Prisma which works really well FWIW. Theres even an example in the repo https://github.com/serverless-stack/serverless-stack/tree/master/examples/prisma Works well with Aurora and Planetscale for us
t

thdxr

03/29/2022, 9:43 PM
^ that example came after a lot of sweat and tears 😄 - one thing to note that even with the effort we made to slim down what's shipped, Prisma is still huge compared to the size of normal lambdas and will have an impact on your cold starts so make sure you factor that in
r

Rob N

03/29/2022, 10:51 PM
Thanks @thdxr yeah it certainly had some pain points for us too although that was mostly esbuild and typegraphql related. Using Prisma to auto generate graphql resolvers etc though makes it super nice. https://prisma.typegraphql.com/