Closed Tomomi-K1 closed 6 months ago
Describe the bug Inside getMutationInput, output is used instead of input to get the return value. When using a transformer, when it's mutation, deserialization is not applied for mutation input.
getMutationInput
output
input
this should be changed from:
const getMutationInput = async (req: Request, transformer: CombinedDataTransformer) => { const body = await req.json() return transformer.output.deserialize(body) }
to:
const getMutationInput = async (req: Request, transformer: CombinedDataTransformer) => { const body = await req.json() return transformer.input.deserialize(body) }
Describe the bug Inside
getMutationInput
,output
is used instead ofinput
to get the return value. When using a transformer, when it's mutation, deserialization is not applied for mutation input.this should be changed from:
to: