You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now platformics exclusively supports basic CRUD actions. This is ok for a narrow set of applications, but most users will probably need to add some business logic to their endpoints. How can we support this as well as making sure users can still run make codegen when their schemas change? This might be a set of short/medium/long term plans, along the lines of:
Short term:
Support a ### USER CODE BELOW tag in the files that get written by codegen, that codegen knows not to overwrite
Medium term:
Support plugin hooks in our generated code, to allow users to add additional logic to GQL resolvers that read/write data.
There are a lot of different methods of allowing the generated Platformics code to be extended. Some examples:
PropelORM generates a parent class (with interesting generated code) and stub child classes for each type it supports that allow framework users to modify the stub child classes ref here
Could we support plugins in the codegen process as well? For example, if we enabled a 'search' codegen plugin, the generated code could update search indexes when DB data gets updated.
Right now platformics exclusively supports basic CRUD actions. This is ok for a narrow set of applications, but most users will probably need to add some business logic to their endpoints. How can we support this as well as making sure users can still run
make codegen
when their schemas change? This might be a set of short/medium/long term plans, along the lines of:Short term:
Support a
### USER CODE BELOW
tag in the files that get written by codegen, that codegen knows not to overwriteMedium term:
Support plugin hooks in our generated code, to allow users to add additional logic to GQL resolvers that read/write data.
There are a lot of different methods of allowing the generated Platformics code to be extended. Some examples:
The text was updated successfully, but these errors were encountered: