Does anyone have any idea why i receive this error...
# orm-help
e
Does anyone have any idea why i receive this error? i’m fairly new to graphql and prisma. I’ve tried to map out the situation
fast parrot 1
➕ 2
anybody?
m
You try to create a new workspace in this mutation. The field
organisation
in the
Workspace
model is required but you did not provide it. Hence the error.
Your case looks like as if you should not start with an
updateMember
mutation. Instead start with
createOrganisation
then created a new
Workspace
nested within it. And then use the nested
connect
to associate the user to those entities.
e
Oh seems like a good reason, I'll try it and return with the output. Thanks @marcus
Almost worked, got organisation to work which is super awesome so thank you! however not workspace connection. How do you mean connect? in the mutation or the resolver? @marcus
m
@Emil Forsmann: in the mutation.
connect
is nested mutation just like the
create
you are using.
e
awesome thanks yet again!