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 say it's best practice to use a single input type as an argument, and then we do this:
typeMutation {
createUser(user: CreateUserInput!, secretKey: String!): User
}
I created it that way because secretKey felt like something out of band, like you'd put it in a header, except it's more convenient to be an argument given it's only used in this one resolver. Is that a good reason, in which case we could add an explanation, or should we just move it inside the input object like this?
We say it's best practice to use a single input type as an argument, and then we do this:
I created it that way because
secretKey
felt like something out of band, like you'd put it in a header, except it's more convenient to be an argument given it's only used in this one resolver. Is that a good reason, in which case we could add an explanation, or should we just move it inside the input object like this?Thanks to @Borales for asking
The text was updated successfully, but these errors were encountered: