Skip to content

v0.11.0

Compare
Choose a tag to compare
@github-actions github-actions released this 21 Sep 18:00
· 626 commits to main since this release
02f836a

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

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.