hydra icon indicating copy to clipboard operation
hydra copied to clipboard

Default values in input schema

Open ondratra opened this issue 3 years ago • 0 comments

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.

ondratra avatar Apr 16 '21 09:04 ondratra