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

code-gen(experimental/crud): support custom readable type #2472

Closed
dirkdev98 opened this issue Mar 29, 2023 · 0 comments
Closed

code-gen(experimental/crud): support custom readable type #2472

dirkdev98 opened this issue Mar 29, 2023 · 0 comments
Labels
prio 1 Defines the highest prio issues

Comments

@dirkdev98
Copy link
Member

Support a custom readable type on T.crud().fields({ readable: T.reference("my", "type") }). This has the following characteristics:

  • The type is used instead of the generated generated xxxItem in list, single and create routes
  • No changes are necessary on the generated query builders, since they can be mutated already in the 'preModifier' functions, to add things like extra joins
  • The xxxTransfrom will be skipped and instead an transform function will be accepted when registering the CRUD routes. Each route result will pass through that transform for list, single and create routes.
@dirkdev98 dirkdev98 added the prio 1 Defines the highest prio issues label Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prio 1 Defines the highest prio issues
Projects
None yet
Development

No branches or pull requests

1 participant