hydra
hydra copied to clipboard
Default values in input schema
It would by handy if input schema could contain default values definitions.
type MyEntity @entity {
myProperty: String! @default("myValue")
}
This could be translated to something like in model definition:
@StringField( { db: { default: "myValue" } })
myProperty: string
This can reduce the number of values that need to be set in mappings when creating a record.