Our great sponsors
-
Prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
-
typegraphql-prisma
Prisma generator to emit TypeGraphQL types and CRUD resolvers from your Prisma schema
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
amplication
🔥🔥🔥 Open-source backend development platform. Build production-ready services without wasting time on repetitive coding.
-
Knex
A query builder for PostgreSQL, MySQL, CockroachDB, SQL Server, SQLite3 and Oracle, designed to be flexible, portable, and fun to use.
What we don't support at the moment are "long-running transactions". There are several reasons for this. First, transactions are very often misused and their use cases are better realized with dedicated and safer APIs. That's why we offer bulk operations, nested writes, atomic operators, and transaction batches to make sure developers don't accidentally shoot themselves in the foot. We are also working on bringing optimistic concurrency control (OCC) to the Prisma Client API to enable even more use cases. TLDR: Long-running transactions are a powerful tool, but they're also low-level and many of their use cases are implement more safely with dedicated APIs – which is what Prisma is trying to achieve. Another reason why we don't support them at the moment is that long-running transactions typically don't scale well in serverless environments and we want to help developers build their applications in a way that's compatible with modern deployment models.
There are also several tools that allow you generate a GraphQL CRUD API based on Prisma, such as Amplication, KeystoneJS or typegraphql-prisma.
There are also several tools that allow you generate a GraphQL CRUD API based on Prisma, such as Amplication, KeystoneJS or typegraphql-prisma.
There are also several tools that allow you generate a GraphQL CRUD API based on Prisma, such as Amplication, KeystoneJS or typegraphql-prisma.
Ha, thanks a lot for catching this, just fixed it ✅
I see that knex does support some typing. But you have to define what you expect it to return. So would you have type interfaces for each usage of knex, or would you rather define it in a prisma schema once and have your types for free beyond that.