Sasha
Sasha
feat: expose `session` / `db` in migrations to use the active transaction with the database directly
This PR adds a feature which fixes another issue with migrations in Postgres and does few refactors that significantly reduce code duplication. Previously, if you needed to use the underlying...
This PR can significantly reduce your `payload-types.ts` file if you have sharable fields / blocks that use the `interfaceName` property. Previously we didn't respect it for select types. Before: ```ts...
Adds KV storage support to Payload Local API with an adapter pattern, includes 3 adapters. We'll use it for the Realtime API. You can access it via `payload.kv`: ```ts interface...
Updates generated types in all templates using the new script. Fixes https://github.com/payloadcms/payload/issues/9864
Exposes `pagination: false` to REST / GraphQL to improve performance on large collections by avoiding count query. This will also be nice for our SDK https://github.com/payloadcms/payload/pull/9463 to have the same...
### What? Querying by nested to rows fields in has many relationships like this: ```ts const result = await payload.find({ collection: 'relationship-fields', where: { 'relationToRowMany.title': { equals: 'some-title' }, },...
Rework of https://github.com/payloadcms/payload/pull/5912 ### What? Now, when `defaultValue` is defined as function you can receive the `req` argument: ```ts { name: 'defaultValueFromReq', type: 'text', defaultValue: async ({ req, user, locale...
### What? Previously, the `req` argument: In database operations (e.g `payload.db`) was required and you needed to pass the whole `req` with all the properties. This is confusing because in...
This PR allows to have full type safety on `payload.drizzle` with a single command ```sh pnpm payload generate:db-schema ``` Which generates TypeScript code with Drizzle declarations based on the current...
### What? Abstracts SQL schema building, significantly reducing code duplication for SQLite / Postgres db-sqlite lines count From: ```sh wc -l **/*.ts 62 src/connect.ts 32 src/countDistinct.ts 9 src/createJSONQuery/convertPathToJSONTraversal.ts 86 src/createJSONQuery/index.ts...