Zendro-dev / graphql-server-model-codegen

Command line utility to auto-generate the structure files for a graphql server
MIT License
1 stars 2 forks source link

feat: add model name in storage code-generator property #205

Closed coeit closed 2 years ago

coeit commented 2 years ago

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 pluralized model is used, as before.

Changes

Todo