Earlier quoted context omitted.
This is really not clear from the site. Even after I skimmed the tutorials and docs. I would imagine it should be front and center like in Hasura and Postgraphile . I would be tiffed if I found out after I started developing with it using the cli that I need to setup another server and process in my production environment.
(I work at Prisma) It is very important to understand that Prisma is NOT a GraphQL-as-a-Service like Hasura or Postgraphile. It's really a suite of database tools that you can use for any use case (building GraphQL, REST or gRPC APIs, or use it in any other app where you need a database). We recently wrote a blog post about this topic: https://www.prisma.io/blog/prisma-and-graphql-mfl5y2r7t49c/ Also, the Prisma serve…
Prisma – Database tools for modern application development
81–88 of 88 posts
Re: Prisma – Database tools for modern application development
#82Hm... is this is like JOOQ[1] for non-Java languages? Or maybe more like a typed version of massivejs[2]? [1] https://www.jooq.org/ [2] https://massivejs.org/
Sorry for being out of context, but why is your name in green? This is the first time I have seen a green name in HN.
Re: Prisma – Database tools for modern application development
#83Earlier quoted context omitted.
> SQL results, coming without any translation layer, are untyped. That would depend on the database's wire protocol, wouldn't it?
Do I really have to qualify this with ‘mainstream databases, with mainstream client libraries, in nearly all major languages’?
Re: Prisma – Database tools for modern application development
#84I’ve tried Prisma over the last few months, but eventually decided against adopting it in our product because it seems very inflexible when working with many-to-many relationships. In particular, filtering on foreign keys doesn’t seem possible and requires SQL table joins, which (in our case) has an immensely negative performance impact. Also, the query chaining API doesn’t lend itself well to filtering on multiple r…
Re: Prisma – Database tools for modern application development
#85I’ve tried Prisma over the last few months, but eventually decided against adopting it in our product because it seems very inflexible when working with many-to-many relationships. In particular, filtering on foreign keys doesn’t seem possible and requires SQL table joins, which (in our case) has an immensely negative performance impact. Also, the query chaining API doesn’t lend itself well to filtering on multiple r…
Forgive me if I’m missing something here, but joins seem pretty much the only way to do performant foreign key filtering to me. Is this not what you were talking about?
Re: Prisma – Database tools for modern application development
#86Earlier quoted context omitted.
> SQL results, coming without any translation layer, are untyped. That would depend on the database's wire protocol, wouldn't it?
Do I really have to qualify this with ‘mainstream databases, with mainstream client libraries, in nearly all major languages’?
Re: Prisma – Database tools for modern application development
#87Hm... is this is like JOOQ[1] for non-Java languages? Or maybe more like a typed version of massivejs[2]? [1] https://www.jooq.org/ [2] https://massivejs.org/
No Prisma is not like JOOQ. We are happily using JOOQ internally at Prisma so i happen to know. The main differences in my opinion are: - JOOQ is a SQL Query Builder which is typesafe in regards to the fact that you cannot make SQL syntax errors in your query. However you can still write queries that are e.g. using a table that does not exist. In contrast the Prisma Client gets generated for all your tables and colum…
it however requires you do this at compile time, not runtime. does prisma do the introspection at runtime?
Re: Prisma – Database tools for modern application development
#88Earlier quoted context omitted.
Ah so this is similar to Hasura.
I work at Prisma, we've recently written a blog post about exactly this question where we also compare Prisma to other services like Hasura or AWS AppSync: https://www.prisma.io/blog/prisma-and-graphql-mfl5y2r7t49c/
> Comparing Prisma to AWS AppSync & Hasura
> With the new understanding of the role of Prisma's CRUD GraphQL API, it becomes clear that Prisma is not in the category of "GraphQL-as-a-Service" anymore.
> Tools like AWS AppSync and Hasura provision a generated GraphQL API for your database (or in the case of AppSync also other data sources). In contrast, Prisma enables simplified and type-safe database access in various languages.