why is ```mutation ($data: ResumeCreateInput!) { ...
# orm-help
s
why is
Copy code
mutation ($data: ResumeCreateInput!) {
  createResume(data: $data) {
    id
  }
}
with
Copy code
{ "data": {
  "firstName: "me",
  "location": { "city": "mine" }
} }
erroring with
Variable '$data' expected value of type 'ResumeCreateInput!' but got: {"firstName":"me","location":{"city":"mine"}}. Reason: 'location.city' Field 'city' is not defined in the input type 'LocationCreateOneInput'.
b
The message is very obvious:
'location.city' Field 'city' is not defined in the input type 'LocationCreateOneInput'.
👎 1
m
wrap it within the
create
location: { create: { city: 'mine' } }
👍 1
s
@Michał Chmura is that standard graphql, or specific to prisma?
m
specific to
Prisma
👍 1
s
thanks!