Only comes in when I add a field on a type, format...
# prisma-whats-new
d
Only comes in when I add a field on a type, formatting is correct from what I can see, literally no idea
n
when you remove that field and deploy, does it work?
d
Yep, no problem at all
type NutritionDays { id: ID! @unique }
type Plan { ..omitted.. nutritionDays: NutritionDays! }
n
is this the working or non-working version?
d
Non-working
If I remove that then, it works with no error
n
what are you removing?
can you try to add
a: Int
to the
NutritionDays
, and see if that works?
d
The "nutritionDays: NutritionDays!"
ok no problem
Works no problem at all
I had a relation in there like
plan: Plan!
and it didn't work with that either
so must need a scalar type?
n
ok, please create a bug report so we can investigate further: https://github.com/graphcool/prisma/
you should be unblocked for now 🙂
d
Done @nilan, hope that looks good enough for an issue report. Never done that before
🙂
n
thanks, that's great! 🙂 I changed the formatting a bit, you can check by editting it again. That helps a lot with parsing!
d
Brilliant, thank you 🙂
Okay @nilan, I swear I'm not trying to break prisma
but I have another error
Which worked fine in Graphcool
in the
nutritionDays
type I have a separate relation to
NutritionPlan
for each different day. so
monday: NutritionPlan @relation(name: "MondayOnNutritionPlan")
etc
for 7 separate days
It works up until I try to add a 3rd day relation
and I get this error:
Copy code
ERROR: Whoops. Looks like an internal server error. Search your cluster logs for request ID: cluster:cluster:cjeztljsd175b0194fgw2md1z

{
  "data": {
    "deploy": null
  },
  "errors": [
    {
      "message": "Whoops. Looks like an internal server error. Search your cluster logs for request ID: cluster:cluster:cjeztljsd175b0194fgw2md1z",
      "path": [
        "deploy"
      ],
      "locations": [
        {
          "line": 2,
          "column": 9
        }
      ],
      "requestId": "cluster:cluster:cjeztljsd175b0194fgw2md1z"
    }
  ],
  "status": 200
}
I tried to look at internal cluster log, but it's not implemented yet in cli 😞
n
What cluster did you deploy this to?
d
my own cluster, david-young/transform
n
Thanks, please reach out in the chat from the Console.
d
No problem will do now
Just reached out, thanks @nilan
👍 1