I'm currently trying to update my codebase to @graphql-codegen/cli v7 and @graphql-codegen/client-preset v6 and found that the following output
export const PaymentStatusSchema: z.ZodType<PaymentStatus, PaymentStatus> = z.enum(PaymentStatus);
is no longer compatible. Codegen now emits enums as string union types instead of actual enums, which leads to the following error:
'PaymentStatus' only refers to a type, but is being used as a value here.
Just wanted to ask whether there is a workaround and if an update is being worked on?
I'm currently trying to update my codebase to
@graphql-codegen/cliv7 and@graphql-codegen/client-presetv6 and found that the following outputis no longer compatible. Codegen now emits enums as string union types instead of actual enums, which leads to the following error:
Just wanted to ask whether there is a workaround and if an update is being worked on?