Sasha

Results 67 issues of Sasha

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...

created-by: Payload team

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...

created-by: Payload team

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...

created-by: Payload team

Updates generated types in all templates using the new script. Fixes https://github.com/payloadcms/payload/issues/9864

created-by: Payload team

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...

created-by: Payload team

### 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' }, },...

created-by: Payload team

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...

created-by: Payload team

### 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...

created-by: Payload team

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...

created-by: Payload team

### 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...

created-by: Payload team