Hello everyone, I am the beginner with prisma and need to integrate it with Hasura cli. I couldn't find the proper doc or any help online. Can anyone help me with this?
r
Ryan
01/11/2021, 10:06 AM
Hey @JakubJiricka π
We donβt have any docs on integrating Prisma with Hasura unfortunately.
Could you explain you use case for doing so?
j
JakubJiricka
01/11/2021, 10:08 AM
Hey @ryan - Thanks for your reply.
I just started prisma in vue/nuxt project.
We are using hasura cli with postgres database.
a
Alexander Braunreuther
01/11/2021, 10:13 AM
Hi @JakubJiricka I'm using prisma for our backend microservices and hasura as our frontend api gateway. We use prisma to build and migrate the database schema and don'T change the schema in any way from hasura. I can help you if you have questions on this.
π 1
j
JakubJiricka
01/11/2021, 10:15 AM
As I know hasura is graphql api and I need the cient to connect to it to a client.
I am going to use prisma for this purpose.
a
Alexander Braunreuther
01/11/2021, 11:24 AM
Hasura creates a graphql based on your Postgres Database, which can get consumed by your frontend. Prisma wouldn't be used directly in your frontend.
Prisma can manage the schema of the postgres database for you. Also if you have webhooks in Hasura, for example when a Entry gets inserted you could use Prisma in the webhook handler as it's easy to access the database through the prisma client.