Sasha

Results 67 issues of Sasha

Uses lookups for relationships querying (`where { relationship.name }`) of subquerying. Before, whenever we needed to query by a property from another document, we did this: ```ts const result =...

created-by: Payload team

According to Drizzle[ 0.34.0](https://github.com/drizzle-team/drizzle-orm/releases/tag/0.34.0) change However, currently we do not expose this type Only with SQLite the adapter itself had it, but this PR includes it to the declaration statement....

created-by: Payload team

### Link to reproduction _No response_ ### Payload Version 3.0.0-beta.37 ### Node Version 20 ### Next.js Version 14.68canary ### Describe the Bug A user can save a document during autosave....

created-by: Contributor

After the change with removing `getPayloadHMR`, we do generate import map even outside of Next.js, which leads to errors when using in a project without it: ![image](https://github.com/user-attachments/assets/e8dc2af6-566b-443c-a6d8-8b02e719bd30) Also, the `ws`...

created-by: Payload team

Fixes errors when having joins with versions +drafts on `hasMany: true` relationships. Removes `joinQuery` overhead if we don't need it for the current operation. Right now, in all adapters we...

created-by: Payload team

Ensures `sanitizeRelationshipIDs` works properly in any case Skips ObjectID creation errors to not fail with outdated data to the schema.

created-by: Payload team

Adds Payload SDK package, which can be used to query Payload REST API in a fully type safe way. Has support for all necessary operations, including auth, type safe `select`,...

created-by: Payload team

- Uses `pagination: false` where we don't need `totalDocs`. - in `preview/route.ts` uses `depth: 0`, select of only ID to improve performance - in `search` uses `select` to select only...

created-by: Payload team

### What? Previously, using Postgres, select fields with `hasMany: true` weren't clearable. Meaning, you couldn't pass an empty array: ```ts const updatedDoc = await payload.update({ id, collection: 'select-fields', data: {...

created-by: Payload team

### What? Exposes ability to enable [AUTOINCREMENT](https://www.sqlite.org/autoinc.html) for Primary Keys which ensures that the same ID cannot be reused from previously deleted rows. ```ts sqliteAdapter({ autoIncrement: true }) ``` ###...

created-by: Payload team