Hi, is there a guide to use an orm for aurora post...
# help
l
Hi, is there a guide to use an orm for aurora postgres?
t
are you using our RDS construct?
l
Yes @thdxr
t
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
Nice, thank you, these definitely helps.
s
@thdxr nice! I’ve been using knex all this time. it’s just ok. I’ll have to check out kysely
r
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
^ 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
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/