Issue: All fields with `@default(xxx)` should be optional in GraphQL Schema
Tenrys opened this issue · comments
Bell commented
I would expect to be able to omit required fields that have a default value entirely, so that the database can fill them up for me if I choose not to specify them, but it looks like a field is only considered "auto-populated" under very specific conditions:
prisma-appsync/packages/generator/src/compiler.ts
Lines 669 to 678 in aa0816b
Shouldn't it just be flagged as such as long as it has a valid @default
attributes?
Sylvain commented
Will be release as part of 1.0.0-rc.6.