nestjs-relay
nestjs-relay copied to clipboard
Support multiple arguments in a mutation
Is your feature request related to a problem? Please describe. No.
Describe the solution you'd like When creating a relay-compliant mutation, I would like the option of adding individual arguments, rather than having to define a separate input type.
Example
@Resolver(Ship)
export class ShipResolver {
@RelayMutation(() => Ship)
buildShip(
@InputArgs() name: string,
) {
return null
}
}
Should result in the following schema definition:
input BuildShipInput {
name: String!
clientMutationId: String
}
type Mutation {
buildShip(input: BuildShipInput!): BuildShipPayload
}