-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
The Relay spec requires an input object to be registered in the schema, even when a user-defined input is not required for the mutation.
Describe the solution you'd like
When a mutation is defined without a user-defined input type, there should still be an input type generated in the schema.
@Resolver(Ship)
export class ShipResolver {
@RelayMutation(() => Ship)
buildShip() {
return null
}
}
Should result in the following schema:
input BuildShipInput {
clientMutationId: String
}
type Mutation {
buildShip(input: BuildShipInput!): BuildShipPayload
}
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request