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
We still need to support linking existing objects. We could support it by having the input type for city contain optional fields for all types on the City model including the id and do runtime checks to ensure that all required constraints are satisfied:
Currently to create an object and link it to another object you have to perform two mutations:
This is a common enough use case that we want to support it in a single mutation. The straight forward implementation would be:
We still need to support linking existing objects. We could support it by having the input type for city contain optional fields for all types on the City model including the id and do runtime checks to ensure that all required constraints are satisfied:
It would be better if we could encode in the type system that the shape of the city input field should be
{id!} || {name!, knownFor}
The text was updated successfully, but these errors were encountered: