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

Question : recipe to omit a field ? To expand an object ? #17

Open
olup opened this issue Jun 23, 2024 · 2 comments
Open

Question : recipe to omit a field ? To expand an object ? #17

olup opened this issue Jun 23, 2024 · 2 comments
Assignees

Comments

@olup
Copy link

olup commented Jun 23, 2024

Is there a simple way to hide a field from an object ? Or to add a custom one ?

@Sukairo-02
Copy link
Collaborator

Unfortunately no, since we generate handlers from table schemas. You could though make a custom data type, make a wrapper around original handler and omit\add fields in said wrapper after original handler processes it's operation.

@olup
Copy link
Author

olup commented Jun 24, 2024

Can we imagine a way to declare fields / methods to omit in the original drizzle schéma ? I never checked if the drizzle schéma can be extended with custom props, I guess not. But this is a typical use case in Prisma land that would be very beneficial here as well.

@Sukairo-02 Sukairo-02 self-assigned this Jun 24, 2024
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

2 participants