Tim Rich

02/26/2018, 9:05 AM
can anyone explain to me what prisma is ?


02/26/2018, 10:04 AM
In simple terms: 1. You define your data schema 2. You pass this to Prisma and let it know where you have hosted your database 3. Prisma will generate CRUD APIs for you to work with that schema
The additional bit here is that it works with a bunch of other graphql based modules / libraries to automagically set up the database for you (creates tables, relations - everything based on your defined schema) and provides you with a server too to which you can immediately make requests
^ this explanation is purely based on my experience so far. I am sure it's more than that

Michael Bøcker-Larsen

02/26/2018, 10:10 AM
Also, you can see it is a GraphQL database abstraction layer in the backend. So you'll have GraphQL in the front (application) and GraphQL (prisma) in the resolver to the applicatinon's queries. Prisma handles all the mapping to SQL, noSQL or whatever and in addition creates a bunch of GraphQL queries and mutations for you (based on your types and their relations).
You can use Prisma like described above (as DBAL) or you can use it directly in your browser as a sort of serverless backend