prisma-engines
a6e6d0eb - fix(qc): make `@updatedAt` use the `now()` generator (#5414)

Commit
335 days ago
fix(qc): make `@updatedAt` use the `now()` generator (#5414) Setup the query engine request context with the `request_now` value containing a generator call when compiling a query. I wanted to completely get rid of the reliance on the request context in `WriteArgs` and not have to compile the request context code in the query compiler binary at all, which would've been more efficient, and would trivially work with the query compiler, but in the query engine we assume that any generators are resolved at the document parsing stage, so this would require either evaluating the generators created in the query graph before we pass them to quaint, or making it possible to evaluate opaques in quaint (and only error on opaques that are not possible to evaluate, i.e., placeholders), so I decided to go with the simplest solution for now. Closes: https://linear.app/prisma-company/issue/ORM-964/updatedat-doesnt-use-generators
Author
Parents
Loading