Closed danmo closed 5 years ago
A very useful field would be $override, example:
{ field: { $override: "crieteria", $default: "default value" } }
if criteria is passed, then field will get its value, if not it will use the default.
A real case scenario is loading some environment variables and passing them as criterias, if they exist they override the default value.
@danmo you can now use $env and $param directives.
$env
$param
A very useful field would be $override, example:
if criteria is passed, then field will get its value, if not it will use the default.
A real case scenario is loading some environment variables and passing them as criterias, if they exist they override the default value.