MCPcopy Create free account
hub / github.com/TanStack/db / validateData

Method validateData

packages/db/src/collection/index.ts:636–642  ·  view source on GitHub ↗

* Validates the data against the schema

(
    data: unknown,
    type: `insert` | `update`,
    key?: TKey,
  )

Source from the content-addressed store, hash-verified

634 * Validates the data against the schema
635 */
636 public validateData(
637 data: unknown,
638 type: `insert` | `update`,
639 key?: TKey,
640 ): TOutput | never {
641 return this._mutations.validateData(data, type, key)
642 }
643
644 get compareOptions(): StringCollationConfig {
645 // return a copy such that no one can mutate the internal comparison object

Callers 3

normalizeOperationsFunction · 0.45
performWriteOperationsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected