how to create object with foreign key in model using graphine django? #1171
Unanswered
bhanuchander008
asked this question in
Q&A
Replies: 2 comments
-
plz help me |
Beta Was this translation helpful? Give feedback.
0 replies
-
I create objects with foreign keys by replacing the object passed on the query with the instance of the foreign-key, for example:
And then on the mutate function, passing in kwargs, you can do:
With the graphql query looking like:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
getting error as actor_id cannot be null
Beta Was this translation helpful? Give feedback.
All reactions