but I keep getting this error at the first deploy ...
# orm-help
v
but I keep getting this error at the first deploy of the service:
Copy code
User
    ✖ You are creating a required field but there are already nodes present that would violate that constraint.
c
This happens when you add a new required field (using !) to a Type thats already created on the first deploy. If you're happy to not have it a required field take off the ! and deploy again or just run prisma reset to deploy fresh with seeds.
v
What’s strange is that I haven’t yet deployed a thing!
c
v
I’ll try the reset nonetheless
c
Did you use a boilerplate?
v
Yes
As per tutorial
c
It automatically deploys it when you bootstrap it, took me a while to realise also
v
Ha! Ok, that makes sense then
c
Best thing to do if you're just getting started is to run prisma reset and then prisma deploy again when you've updated your schema (schema.graphql)
v
Well, in that case the tutorial needs adjustment
as it’s the tutorial that tells me to add the required field!
that worked, of course
c
Awesome 🙂
v
it remains the question of why I don’t see the services on my online console under
/services
c
Is it a local deploy with docker or to a demo shared cluster?
v
the latter
I think at least 😄
I’ll double check
n
what's the link to the guide you're following?
n
There is a missing step in the tutorial.
✖️ You are creating a required field but there are already nodes present that would violate that constraint.
The solution is to either remove all nodes, or add the field as optional, update all nodes to have a value, then set the field as required.
v
👍
Btw, I like Prisma even better than I liked the old Graphcool
My compliments, great job guys.
🙌 1