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

Nest.js + MikroORM + Nestia #1000

Open
ericjeker opened this issue Aug 26, 2024 · 2 comments
Open

Nest.js + MikroORM + Nestia #1000

ericjeker opened this issue Aug 26, 2024 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers question Further information is requested

Comments

@ericjeker
Copy link

Hi Samchon,

This is not really a question, more a discussion. I wanted to share a repository I created with a basic example of Nest.js + MikroORM + Nestia.

I saw that you were supporting Prisma and wanted to try Nestia with MikroORM. It's important for me and my teams as we are not using Prisma at all.

For now, it's an initial draft and I will continue to explore how to better integrate Nestia in this setup. For example, I am not so sure how you process the @hidden comments. Is that only available for Prisma? Also, I feel like there is a bit of a duplication between MikroORM serialization and Nestia serialization.

I still need to integrate Swagger and the SDK, but you can already have a look, especially how it works with MikroORM, if this is something that interests you.

Otherwise, not much to see here. 😉

Thanks for your work on Nestia.

@samchon samchon added the question Further information is requested label Aug 26, 2024
@samchon
Copy link
Owner

samchon commented Aug 26, 2024

Nestia is just a helper library for SDK and Swagger generation. ORM is not a matter. I've not used MikoORM at all, but there had not been any problem when I used TypeORM with Nestia.

About the @hidden tag, it is just hiding the target property in the Swagger document. It does not affect to the ORM at all, except you've seen the prisma-markdown library.

Good luck for your project.

@samchon samchon self-assigned this Aug 26, 2024
@samchon samchon added documentation Improvements or additions to documentation good first issue Good for newcomers labels Aug 26, 2024
@samchon
Copy link
Owner

samchon commented Aug 26, 2024

If your project becomes stable, it would better to add a example chapter on guide documents, and add this one to there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants