Decorated Typescript types as classes dictate the GraphQL schema and the DB model (either through further decorator libs or custom solutions). So, you end up with only one source of truth + stay DRY + very low level of abstractions. There is some debate around the right approach but I much prefer this approach over the others such as DB-model-first (Hasura) or Prisma 2 which I remember has its own DSL for modeling data.
Prisma Raises $12M Series A
41–50 of 114 posts
Re: Prisma Raises $12M Series A
#42The graphic under "Database tools are stuck with legacy paradigms" made me chuckle. Just because the tech under the "Legacy" column isn't the new hotness doesn't mean they're suddenly irrelevant or even a bad choice.
I clicked around a bit. I heard a lot about motivations but couldn't figure out a specific situation where I would be really happy to be using Prisma.
Re: Prisma Raises $12M Series A
#43I’m not seeing why I’d use this over sql. Can someone please enlighten me as I find this to be much more gobbledegook than sql.
Maybe it would be popular for new engineers that don't feel like learning SQL. Same reason why MongoDB got popular.
Re: Prisma Raises $12M Series A
#44Re: Prisma Raises $12M Series A
#45While the implementation certainly seems very nice, the ideas behind Prism 2 aren't particularly new, or unique for that matter. For example the .NET ecosystem already has (for a long time) most of the stuff that is presented as being uniquely offered by Prism: generated database clients (LINQ-to-SQL, Entity Framework), generated data models (EF POCO's), type-safe queries (LINQ) etc.
Everything is being reinvented from scratch in the JS world. The insistence on unifying into one language means that a lot of tried tested and true has been tossed aside and it's all being rebuilt sometimes with dubious benefit.
Re: Prisma Raises $12M Series A
#46I’m not seeing why I’d use this over sql. Can someone please enlighten me as I find this to be much more gobbledegook than sql.
This approach is notorious for generating inefficient sql queries, but it can improve jr fronted dev productivity b/c a tool like this is easier to learn than SQL.
Re: Prisma Raises $12M Series A
#47Related and FWIW: I checked all solutions in this space and I stuck with type-graphql which is not only an amazing lib but offers a clean architecture: Decorated Typescript types as classes dictate the GraphQL schema and the DB model (either through further decorator libs or custom solutions). So, you end up with only one source of truth + stay DRY + very low level of abstractions. There is some debate around the rig…
You can even combine Prisma with TypeGraphQL if you're building a GraphQL server that needs to access a databases. In that case, you'd use Prisma Client inside your TypeGraphQL resolvers to send database queries.
In fact, we are collaborating with the maintainer of TypeGraphQL to build an integration between Prisma and TypeGraphQL that will allow you to leverage information from your Prisma models when building your GraphQL schema! :)
Re: Prisma Raises $12M Series A
#48Prisma co-founder here. I’m really excited to put this to good use and roll out many new futures in the coming months. Happy to answer any questions :-)
As a developer, I prefer the Confluent/Kafka model because it’s crystal clear where the separation is between premium and open source.
Re: Prisma Raises $12M Series A
#49The graphic under "Database tools are stuck with legacy paradigms" made me chuckle. Just because the tech under the "Legacy" column isn't the new hotness doesn't mean they're suddenly irrelevant or even a bad choice.
No reason not to use the older things if they work for you. But if they don't, never choices might help.
Re: Prisma Raises $12M Series A
#50Earlier quoted context omitted.
I feel like current database tools don't really cut it! From my own experience, working with databases in Node.js and TypeScript has always been a painful experience – sometimes more, sometimes less, but it was never smooth or enjoyable! With Prisma, we're setting out to build database tools that make developers more _confident_ and _productive_ [1] in their database workflows! We're focusing on type-safety, intuitiv…
> working with databases in Node.js and TypeScript has always been a painful experience Even after reading your (three) paragraphs from the article on why raw SQL and drivers are bad, I'm far from sold. 1. Establish connection 2. Execute SQL 3. Manipulate results 4. More SQL/Commit/close IME a lot of the struggle comes from not understanding how 1. or 2. work and trying to do all the heavy lifting in 3. The amount of…
There is absolutely room for improved tooling. I have no idea whether Prisma is it.