question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Preview feature feedback: Prisma field reference support (`fieldReference`)

See original GitHub issue

Please share your feedback about the fieldReference functionality released in v4.3.0 in this issue.

  • If you encounter a bug, please open a bug report in this repo.
  • If the feature is working well for you, please share this in a comment below or leave a 👍 on this issue.

If you have any questions, don’t hesitate to ask them in the #prisma-client channel in the Prisma Slack.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
shtse8commented, Sep 2, 2022

hope it can do it with cross models. A.updatedAt > B.updatedAt

3reactions
matthewmuellercommented, Aug 29, 2022

Request for references across tables from @danshapir:

Assume we have 2 tables. Accounts and Transactions We have a field on the Accounts called LinkTime, a datetime. We want to find all transactions where their createdAt is larger than the LinkTime of their parent account.

That’s for the simple query, just comparison of fields from a join. For the more complex scenario, but something we all do a thousand times using SQL, we create a dynamic property as part of the select (computed of multiple fields or any other logic, or maybe aggregated SUM/MIN) and we want to only fetch items that are larger or equal to it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Preview features (Reference) - Prisma
Some Prisma features are released as Previews. Share your feedback on all Preview features on GitHub. For information about available preview features and...
Read more >
Preview feature feedback: Extended where unique #15837
Please use this issue to share any feedback about the extendedWhereUnique functionality released in v4.5.0. Documentation can be found here.
Read more >
Prisma 4.3.0 Release - GitClear
We're excited to announce Preview support for field references. You can enable it with the fieldReference Preview feature flag.
Read more >
Prisma-whats-new - Linen
preview feature in your Prisma Schema: ... We would love to know your feedback! ... Support for ordering by relation fields in MongoDB...
Read more >
Prisma on Twitter: " Prisma 4.3.0 Here are the new features ...
0 Here are the new features & improvements you can expect in this release. Field reference support on query filters (Preview) - you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found