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

Method constructor

packages/db/src/errors.ts:164–168  ·  view source on GitHub ↗
(key: string | number)

Source from the content-addressed store, hash-verified

162
163export class DuplicateKeyError extends CollectionOperationError {
164 constructor(key: string | number) {
165 super(
166 `Cannot insert document with ID "${key}" because it already exists in the collection`,
167 )
168 }
169}
170
171export class DuplicateKeySyncError extends CollectionOperationError {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected