v0.5.0 #256
RobertCraigie
started this conversation in
General
v0.5.0
#256
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Fixes
update_many
mutation data, updating relational fields fromupdate_many
is not supported yet (Add ability to update relation fields insideupdateMany()
prisma/prisma#3143).include
->order_by
is incorrectly typed for 1-M relations #234)What's Changed
Dropped support for Python 3.6
Python 3.6 reached its end of life on the 23rd of December 2021. You now need Python 3.7 or higher to use Prisma Client Python.
Grouping records
You can now group records by one or more field values and perform aggregations on each group!
It should be noted that the structure of the returned data is different to most other action methods, returning a
TypedDict
instead of aBaseModel
.For example:
For more examples see the documentation: https://prisma-client-py.readthedocs.io/en/stable/reference/operations/#grouping-records
While the syntax is slightly different the official Prisma documentation is also a good reference: https://www.prisma.io/docs/concepts/components/prisma-client/aggregation-grouping-summarizing#group-by
Improve support for custom generator options
You can now easily (and with full type-safety) define custom options for your own Prisma Generators!
Removal of deprecated arguments
There are two arguments that were deprecated in previous releases that have now been removed:
encoding
argument toBase64.decode()
order
argument toactions.count()
Support for updating unique fields
You can now update fields that are marked as
@unique
or@id
:Custom CLI binary
You can now easily replace the Prisma CLI binary that Prisma Client Python makes use of by overriding the
PRISMA_CLI_BINARY
environment variable. This shouldn't be necessary for the vast majority of users however as some platforms are not officially supported yet, binaries must be built manually in these cases.Prisma upgrade
The internal Prisma binaries that Prisma Client Python makes use of have been upgraded from v3.7.0 to v3.8.1. For a full changelog see the v3.8.0 release notes.
Miscellaneous changes
This discussion was created from the release v0.5.0.
Beta Was this translation helpful? Give feedback.
All reactions