Closed ZenSoftware closed 10 months ago
It seems like this is still an issue. I've put together a minimal reproduction here: https://github.com/f8k8/paljs-bug. Clone it and do npm install
then npm run generate
. In the generated resolversTypes.ts
, the HouseUpdateManyMutationInput
is missing.
I've figured out why this is happening. If the model (House in the case of the repo I linked) doesn't have any other fields, just an ID and relations, then the XXXUpdateManyMutationInput
interface isn't generated. Presumably because it would have no fields.
this should fix now
Hello @AhmedElywa! 🎎
Pal.js apollo SDL first code generation does not seem to be working with a very simple one-to-many schema. I have created a bare minimum reproduction of this Pal.js bug for you by cloning your prisma-tools/packages/create/examples/apollo-sdl-first example and modifying the
schema.prisma
file.My system:
schema.prisma
Notice how the definition for
ProductUpdateManyMutationInput
is not being generated. src/resolversTypes.ts#L482-L485Though
UserUpdateManyMutationInput
is being properly generated.resolversTypes.ts#L454-L457
src/resolversTypes.ts#L605-L608
Would you happen to know what is happening? Thanks 🎐