Parent
#1123 — build spec 3 of the Prisma 8 architecture spec. Lands on the prisma-8 integration branch, not main.
What to build
context.db.Post (PascalCase) is an opaque wrapper over a collection; .where(...) composes an immutable value; .all() and .first() resolve operation-level query access lazily, add the access filter as a second entry in the collection's filter list, enter the engine origin around the ORM call, materialise, and return []/null on denial. getDbKey is deleted.
Acceptance criteria
Blocked by
Generated by Claude Code
Parent
#1123 — build spec 3 of the Prisma 8 architecture spec. Lands on the
prisma-8integration branch, notmain.What to build
context.db.Post(PascalCase) is an opaque wrapper over a collection;.where(...)composes an immutable value;.all()and.first()resolve operation-levelqueryaccess lazily, add the access filter as a second entry in the collection's filter list, enter the engine origin around the ORM call, materialise, and return[]/nullon denial.getDbKeyis deleted.Acceptance criteria
[]/null, indistinguishable from emptyCollectionorCollectionStateis reachable from the wrapper's type or valuecontext.db.authUseris a compile error;context.db.AuthUserworks;getDbKeyno longer existsBlocked by
Generated by Claude Code