hi, just playing around with your fullstack react ...
# prisma-whats-new
s
hi, just playing around with your fullstack react template. All cool and the when I start the server locally I can see the app and the database schema. However, when I primsa deploy to your prisma cloud I can only get the database schema. I expected the app schema. Do I miss something?
n
what do you mean with "I can only get the database schema"? can you describe your steps, the expected behaviour, and the actual behaviour?
s
in the CLI I go to the server folder and "prisma deploy" that works just fine. When I open the playgorund and go to the endpoint I got from "prisma info" I will get the generated schema, not the one that was defined with prisma bindings.
I think your example is basically trying to show the difference between generated and self defind schemas.
and I want the self defined with bindings in the playground after deploying to your cloud
I guess it could be a definition in the .graphqlconfig.yml that should point the endpoint to the deployed http. however, that didnt work for me.
n
Interesting, thanks for sharing your questions with me! Could you open up a new thread in the Forum, I'd love to give a detailed answer here.
s
aeh, sure. how do i do this? i thought i did withthis question
n
s
alright
n
thanks!
j
Ok so here is the problem
Your are visiting the prisma db uri directly which will show the the db schema.
Here is the solution
Run the local server with yarn start which will take you to http://localhost:4000 for your self defined schema queries and mutation
n
j
Done nilan
s
i ran out of replies on my first day on the forum. Just wanted to say my question is not answered. I want to deploy to the "prisma cloud", and why not, seems like a cool offering. Not to Now or Heroku. But on "prisma cloud" apparently the server-side subscriptions don't work.
j
So here is a few steps i need you to take. I assume you have a prima cloud account
?
Also I need you to understand you can only host your prisma database on the prisma cloud and not your server
s
what do you mean by server? prisma is not just a database but has logic too.
basically it is very simple: when I choose "prisma deploy" I can choose to deploy to US or EU. when I do this only the generated Schema is available. i wonder if this is a bug or on purpose
j
No its not
So here is how prisma works
Prisma is a graphql database or more so abstract existing databases into a graphql database. When you run the prisma deploy command you deploy your database schem to prisma cloud and not your query and resolvers those run on a separate server for now. So you need to host your web server too on heroku or any similar hosting solutions
Again see prisma as a database and your query and custom logic as an express application. You need to host ypur db right eo thats what prisma deploy does. You also gotta host your server too right, so thats when ypu need heroku or alternatives. Now how does the server talk to the database, through the prisma endpoint in the Prisma.yml file.
s
OK, I think now I got it. So the answer is: yes this is on purpose that it doesnt work.
I looked at the pricing page again at prismagraphql.com. It is not so easy to understand. However, the sentence "There will be hosting options in the Prisma Cloud in the future" is saying I guess that in the future it will be possible to deploy even self created resolvers to the prisma cloud. thank you for helping!
j
You welcome