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
Support Include and Select #13
Comments
Here's a similar package for graphql based on prisma, which you can use as an inspiration: https://github.com/MichalLytek/typegraphql-prisma |
Any update on this? |
Not much time these days unfortunately. Though PRs are welcomed if anybody decided to work on it. |
One of the engineers on my team is going to take a crack at this. Assuming success, a PR will be forthcoming! |
|
🙏 |
I am able to generate the schemas by specifying to the generator to make include and select queries, and I can issue the query, e.g.:
I can see that the proper database queries are made to retrieve the correct data from the DB, but how do I access the included data? I can only access the ID, despite my relationships being defined (i.e. they work in prisma studio):
Also, previously |
@omar-dulaimi I'm dealing with the same issue that @vikt0r0 mentioned above - when using include, the type produced by the query doesn't include the linked relations. I'd like to take a stab at a PR, but I'm not really sure where to start. If you could point me in the right direction, hopefully I can figure something out. Thanks for this package by the way! |
Sure. I also have a project I can send you if you want me to. |
Discussed in #11
This requires work to be done here in this library and also in
Prisma Zod Generator
.The text was updated successfully, but these errors were encountered: