Open berkaytheunicorn opened 1 year ago
btw this is correctly generated;
export const MockEmail = (
overrides?: Partial<IEmail>,
_relationshipsToOmit: Set<string> = new Set(),
): { __typename: "Email" } & IEmail => {
const relationshipsToOmit: Set<string> = new Set(_relationshipsToOmit);
relationshipsToOmit.add("Email");
return {
__typename: "Email",
address:
overrides && overrides.hasOwnProperty("address") ? overrides.address! : "quaerat",
primary:
overrides && overrides.hasOwnProperty("primary") ? overrides.primary! : true,
verified:
overrides && overrides.hasOwnProperty("verified") ? overrides.verified! : true,
};
};
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If anyone interested, I'm using this workaround until this is fixed graphql-codegen --config ./codegen-mocks.yml && perl -pi -w -e 's/{} as /{} as I/g;' ./constants/mocks/index.ts && prettier --write ./constants/mocks
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi, our settings file goes like this
and our types generator goes like this
This was working until today but today, generator generates like below;
but it should be