Issue: All fields with @default(xxx)
should be optional in GraphQL Schema
#96
Labels
Milestone
@default(xxx)
should be optional in GraphQL Schema
#96
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?The text was updated successfully, but these errors were encountered: