v0.11.0
v0.11.0
THIS RELEASE CONTAINS BREAKING CHANGES!
Please read the release notes of Prisma 3.x https://github.com/prisma/prisma/releases/tag/3.0.1 which contains many different breaking changes, the primary one being referential actions which breaks previous behaviour. You might want to to checkout the upgrade path for referential actions.
This release currently uses the latest Prisma version https://github.com/prisma/prisma/releases/tag/3.1.1.
Note: This release currently does not support MongoDB.
🌟 Help us spread the word about Prisma by starring the repo ☝️ or tweeting about the release.
Major changes
- Full text search
Enable it in your Go project by adding the fullTextSearch
preview feature.
generator db {
provider = "go run github.com/prisma/prisma-client-go"
+ previewFeatures = ["fullTextSearch"]
}
// Fetch all drafts with a title that contains the words fox or dog
posts, _ := client.Post.FindMany(
db.Post.Title.Search("fox | dog"),
db.Post.Status.Equals("Draft"),
).Exec(context.Background())
// Loop over the posts and print the title
for _, post := range posts {
fmt.Println(post.Title)
}
- Upgrade to prisma 3.1.1
- Introduce referential actions
- Refactor internals
- Tons of bugfixes
- Deprecate some query builder operations to streamline with the JS client ones
Changes
- fix(client): remove deprecated client methods [breaking change] (#526) @steebchen
- ci(actions): enable on all pull requests (#529) @steebchen
- fix(update): use correct model casing in update query (#530) @steebchen
- docs(reference): rename incorrectly named page in readme (#540) @Looskie
- docs(readme): add info about setting output folder and package name (#544) @hi019
- docs(reference): adapt order by schema (#546) @steebchen
- feat(prisma): upgrade prisma to 2.30.0 (#554) @steebchen
- refactor(generator): [full dmmf] rewrite filters (#551) @steebchen
- fix(generator): remove old transform methods (#558) @steebchen
- feat(prisma): upgrade prisma to 2.30.2 (#559) @steebchen
- feat(ast): introduce ast models (#560) @steebchen
- fix(query): adapt filters deprecation comment (#561) @steebchen
- chore(git): rename default branch from master to main (#566) @steebchen
- feat(ast): add relation read filters (#567) @steebchen
- fix(dmmf): remove old relation methods (#568) @steebchen
- fix(mock): add ReturnsMany method for list operations (#571) @steebchen
- feat(scalars): get scalars from dmmf (#574) @steebchen
- feat(ast): add indexes (#575) @steebchen
- fix(transform): adapt filter pick name (#576) @steebchen
- test(fts): add test for full text search (#577) @steebchen
- feat(prisma): upgrade prisma to 3.0.2 (#579) @steebchen
- feat(enums): use internal prisma enums (#581) @steebchen
- fix(mod): move no-op imports to main.go (#582) @steebchen
- feat(ast): revert read relation filters (#583) @steebchen
- feat(prisma): upgrade prisma to 3.1.1 (#584) @steebchen
- fix(mod): revert "move no-op imports to main.go" (#585) @steebchen
Contributors
@Looskie, @hi019 and @steebchen
Interested in providing feedback for the Go client?
We would like to ask you a few questions and get your feedback about the Go client. We'll send merch along your away as a thank you.
If you're interested, email me at [email protected] or join our public Slack and DM me.