From 6ebad15015995d4a2a62092e674db5b396849d77 Mon Sep 17 00:00:00 2001 From: CPatchane Date: Sat, 12 Feb 2022 15:05:57 +0100 Subject: [PATCH] fix(query): prefer MutationData and MutationError suffix for mutations --- src/core/generators/query.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/generators/query.ts b/src/core/generators/query.ts index c84f83028..c9a4be605 100644 --- a/src/core/generators/query.ts +++ b/src/core/generators/query.ts @@ -559,8 +559,8 @@ const generateQueryHook = ( return ` export type ${pascal( operationName, - )}QueryData = NonNullable> - export type ${pascal(operationName)}QueryError = ${errorType} + )}MutationData = NonNullable> + export type ${pascal(operationName)}MutationError = ${errorType} export const ${camel(`use-${operationName}`)} =