Hello guys, I'm new with Prisma. There is a channe...
# orm-help
n
Hello guys, I'm new with Prisma. There is a channel where I can ask something related to prisma examples? Thanks
h
We don’t have a dedicated channel for it, ask here
n
hello @Harshit I'm trying to understand
graphql-auth
typescript https://github.com/prisma/prisma-examples/tree/master/typescript/graphql-auth
h
Any specific question or you need a general overview
n
I'm using my own heroku but I can see in the playground all functions made from datamodel.prisma
but nexus generate schema.graphql that I can use only locally
so if I run the server locally I can see ex.
me: User
query but not in the prisma service that is deployed on Heroku
so datamodel.prisma should be equal to generated/schema.graphql?
I don't understand how I can do changes in the resolvers folder and deploy to heroku. Maybe I've to change a bit my
prisma.yml
and configure the database?
thanks and sorry for the long question
h
datamodel is different from schema. Even though it uses same language (SDL) it’s functions is different. It defines the structure of your database rather than the graphql schema that you are building.
n
mmm, ok...and how I can deploy the graphql schema?
h
It will be a separate graphql server that will interface with the prisma server
n
Copy code
hooks:
  post-deploy:
    - prisma generate
    - npx nexus-prisma-generate --client ./src/generated/prisma-client --output ./src/generated/nexus-prisma # Runs the codegen tool from nexus-prisma.
h
(App). —- (application server) —— (prisma server) —-(database)
n
I was thinking that this automatically generete schema and after
prisma deploy
I can see all funtions implemented
h
Yes it does but you need to deploy that server as well that uses this
n
mmm, ok...so I need to deploy also my server that interact with prisma server
h
Yes
n
there is a guidelines to do that?
h
You can deploy it like any other node server
Also if you developing locally just start it in place via node
npm run start
n
yep, locally just run the server...it's my first time trying to deploy a server. I'll have a look to heroku for deploy a node server
or you can advise any other provider that is cheaper
thanks for your time mate