This PR implements a code-generator property model_name_in_storage that can be used to describe the name of the model in the storage itself. E.g the table-name in relation dbs, the collection in mongodb, the node in neo4j, etc..
The property can be defined in the data model definition using the key model_name_in_storage. It is an optional property and if not set the pluralized model is used, as before.
Changes
added model_name_in_storage
standardize use of namePl as fallback for all storage types
fixed some hard coded mentions of model names
Todo
fix hard-coded "animal"reference in graphql-server file-toolsutility
Summary
This PR implements a code-generator property
model_name_in_storage
that can be used to describe the name of the model in the storage itself. E.g the table-name in relation dbs, the collection in mongodb, the node in neo4j, etc..The property can be defined in the data model definition using the key
model_name_in_storage
. It is an optional property and if not set the pluralizedmodel
is used, as before.Changes
model_name_in_storage
namePl
as fallback for all storage typesTodo
"animal"
reference in graphql-serverfile-tools
utility