v0.8.1 #699
RobertCraigie
started this conversation in
General
v0.8.1
#699
Replies: 1 comment 1 reply
-
Nice! Thanks a lot for your effort |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Support for selecting fields
This release adds support for selecting fields at the database level!
This currently only works for queries using model based access either by defining your own model classes or generating them using partial types.
Quick example:
For a more detailed guide see the docs.
Support for distinct filters
You can now pass in a
distinct
filter tofind_first()
andfind_many()
queries.For example, the following query will find all
Profile
records that have a distinct, or unique,city
field.You can also filter by distinct combinations, for example the following query will return all records that have a distinct
city
andcountry
combination.CLI support for specifying the generator to use
Thanks to @yukukotani's great work on the CLI you can now ergonomically share the same schema between multiple languages, for example with the following schema:
You can now skip the generation of the Node client with the
--generator
command:See the
generate
documentation for more details.Bug fixes
Prisma updates
This release bumps the internal Prisma version from
v4.8.0
tov4.10.1
For the full release notes, see the v4.9.0 release notes and the v4.10.0 release notes.
Minimum required type checker version
Before this release there were no explicit compatibility requirements for type checkers. From now on we will only support the latest versions of Mypy and Pyright.
In the next release the mypy plugin will be deprecated and later removed entirely. There is a bug in the plugin API in the latest versions of mypy that completely breaks the plugin and seems impossible to fix. See #683 for more information.
Sponsors
Massive thank you to @prisma, @techied, @exponential-hq and @danburonline for their continued support! Thank you to @paudrow for becoming a sponsor!
This discussion was created from the release v0.8.1.
Beta Was this translation helpful? Give feedback.
All reactions