Is it okay using Prisma like JPA(Java Persisnstanc...
# orm-help
l
Is it okay using Prisma like JPA(Java Persisnstance API)? prisma generate CRUD and subscriptions etc...automatically based on Info that I defined into “datemodel.prisma” Which mean is I don’t need to define other custom resolvers for using GraphQL. right? Local server port is on at 4000 and local prisma port is on 4466. Therefore I just can make a request to 4466 from Client instead of 4000 for db tasks? did I understand correctly?
j
Yeah I found that part a bit confusing
4000 is for the graphql port to see a graphql portal and do queries and mutations
4446 is prisma server running in docker
l
yes, it is but Once prisma generates CRUD and other function itself.
then no need to implement CRUD or Subscription stuff at local graphql server unless i need to customize it.
which mean is i can make a request to 4466 instread of 4000 for using generated functions.
j
Yep indeee,the endpoint in the configs points to 4466
l
yes.
i would know that prisma gerneate mutations and subs itself.
only things that i need to do is just defining schema on schema.graphql and datamodel.prisma!