amplify-codegen icon indicating copy to clipboard operation
amplify-codegen copied to clipboard

Additional option in creating function to generate models using codegen like

Open OLTApp opened this issue 3 years ago • 3 comments

Is this feature request related to a new or existing Amplify category?

No response

Is this related to another service?

No response

Describe the feature you'd like to request

In my use case, the lambda function (Java) created using Amplify CLI. I would like to have additional option to create also the model objects with codegen so that I can use them in graphql call from the lambda and easily marshal and unmarshal data.

Describe the solution you'd like

Additional cli option to create model class for the chosen lambda function runtime language.

Describe alternatives you've considered

I copied the schema file to a separate folder and ran codegen with Android mobile client which creates the model object for the mobile client in java. But I have manually remove the datastore classed references to keep it plain java object. Because of the unwanted SDK dependencies to lambda function,

Additional context

No response

Is this something that you'd be interested in working on?

  • [ ] 👋 I may be able to implement this feature request

Would this feature include a breaking change?

  • [ ] ⚠️ This feature might incur a breaking change

OLTApp avatar Jun 09 '22 18:06 OLTApp

Hey @OLTApp :wave: thanks for raising this! I've transferred this over to our codegen repo for better assistance 🙂

josefaidt avatar Jun 10 '22 16:06 josefaidt

Hey @OLTApp 👋 thanks for raising this! I've transferred this over to our codegen repo for better assistance 🙂

@josefaidt - Thank you !

OLTApp avatar Jun 10 '22 17:06 OLTApp

Hi @OLTApp - this makes sense as a feature request, I've tagged it as such, and it's popped in our backlog. Thank you for reaching out!

alharris-at avatar Aug 23 '22 18:08 alharris-at