You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to get relations in the mutations (insert/update) as well, like lets say we have a user and a post table currently when i do a query i can request the posts as well however i would also like to be able to add posts during the creation of the user object.
when i create a user, i would like to also add posts as a subfield in the generated UserInsertInput type so when i create the user object, i can attach posts to it instead of doing 2 different inserts.
This might not be a good example with user and post, but i have other data where this would be the easiest way to insert a lot of data at once, and i have many different relations aswell
The text was updated successfully, but these errors were encountered:
Is it possible to get relations in the mutations (insert/update) as well, like lets say we have a user and a post table currently when i do a query i can request the posts as well however i would also like to be able to add posts during the creation of the user object.
when i create a user, i would like to also add posts as a subfield in the generated UserInsertInput type so when i create the user object, i can attach posts to it instead of doing 2 different inserts.
This might not be a good example with user and post, but i have other data where this would be the easiest way to insert a lot of data at once, and i have many different relations aswell
The text was updated successfully, but these errors were encountered: