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
{{ message }}
Repository navigation
Techniques to manage input schemas for different mutations (create | update)?
#1305
First of all, guys, thank you all for maintaining such an amazing and useful repository.
Second, i'm really new to both graphql and type-graphql. So I may be lacking certain common knowledge.
Consider this input class where displayName is a required field.
This works well for my create mutation. But if I were to implement an update mutation, where i would like to make all fields optional, i need to create another input type like UserInputForUpdate
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
First of all, guys, thank you all for maintaining such an amazing and useful repository.
Second, i'm really new to both graphql and type-graphql. So I may be lacking certain common knowledge.
Consider this input class where
displayNameis a required field.This works well for my create mutation. But if I were to implement an update mutation, where i would like to make all fields optional, i need to create another input type like
UserInputForUpdateThis essentially adds duplication across all of my schemas. Which sometimes I do not mind but still brings me to a couple of questions
One thanks in advance ;)
All reactions