Hello everyone, I am the beginner with prisma and ...
# orm-help
j
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
Hey @JakubJiricka πŸ‘‹ We don’t have any docs on integrating Prisma with Hasura unfortunately. Could you explain you use case for doing so?
j
Hey @ryan - Thanks for your reply. I just started prisma in vue/nuxt project. We are using hasura cli with postgres database.
a
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
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
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.
πŸ’― 2
πŸ‘ 1
j
Thanks for more information. Would you please provide the working example for hasura + prisma? I am using hasura cloud and was going to follow these steps. https://www.prisma.io/docs/getting-started/setup-prisma/add-to-existing-project-typescript-postgres/ But I am confused how to start with.