A Yeoman generator to (re)generate a FeathersJS application supporting both REST and GraphQL architectural concepts and their query languages.
44
stars
30
forks
source link
Default value not applied when using with $ref #273
Closed
josephstgh closed 4 years ago
Steps to reproduce
When using
$ref
, I am unable to define a default value for the field.Say I have the following configuration.
common.json
<service>.schema.ts
After generating the service, here's what generated in
<service>.mongoose.ts
.Am I setting it wrongly, or I am not able to create a default value for
$ref
?Expected behavior
The generated
<service>.mongoose.ts
. (or any DB generated file) should beThis does not work for setting
default: Date.now
and other types as well.