-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
feat(generator): initial support for typing of Composite Types #1045
base: main
Are you sure you want to change the base?
feat(generator): initial support for typing of Composite Types #1045
Conversation
@RobertCraigie Can you clarify the purposes of the models defined in |
thanks for working on this!!
Ah yeah Other types that come directly from the schema have their own file as well, e.g. |
… Pydantic to parse
for more information, see https://pre-commit.ci
In fact, I don't know if I really need to write tests specifically for MongoDB, since the query is handled by the Prisma engine after all. Maybe it is better to write tests for the query builder? |
yeah the tests you write for this should just treat composite types as a DB feature and then you'd write tests for the client query methods, e.g. see how the enum tests are written
|
The problem is that there are too many differences between relational databases and MongoDB when using Prisma. This led me to create a new Would it make more sense to focus on unit tests for composite types in |
…stead of get_default_fields
for more information, see https://pre-commit.ci
Change Summary
This is a draft PR that aims to bring support for composite types (#314).
As I don't know the project well, I am open to receive reviews and guidance on this.
Checklist
Agreement
By submitting this pull request, I confirm that you can use, modify, copy and redistribute this contribution, under the terms of your choice.