Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify generated classes #208

Open
cyril94440 opened this issue Feb 23, 2024 · 1 comment
Open

Simplify generated classes #208

cyril94440 opened this issue Feb 23, 2024 · 1 comment

Comments

@cyril94440
Copy link

Hi there,

I love your library it is really awesome. However, I find that the classes generated are a bit overcomplicated sometimes.
What would be the best approach to customize it a little bit so that :

  • On UpdateArgs, string values don't require { set : "stringValue" } so that we can directly pass the value
  • On 1-m connections, we don't need to use the complete syntax with connect/create/... but can directly pass the IDs as an array of Int so that they are "connected" by default?

I have started extending the generated types but it looks like it is taking away most of the benefits.

Thank you for your help.

@cyril94440
Copy link
Author

For my first point, it looks like removing atomic operations solve the issue, would be awesome to be able to then activate it on a per-field basis.

For my second point, I don't have any solution yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant