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

Method getKeyFromItem

packages/db/src/collection/index.ts:572–574  ·  view source on GitHub ↗
(item: TOutput)

Source from the content-addressed store, hash-verified

570 }
571
572 public getKeyFromItem(item: TOutput): TKey {
573 return this.config.getKey(item)
574 }
575
576 /**
577 * Creates an index on a collection for faster queries.

Callers 7

createLocalOnlySyncFunction · 0.80
applyChangesMethod · 0.80
flushIncludesStateFunction · 0.80
mutationFnFunction · 0.80
processChangeMessageFunction · 0.80
deserializeMutationMethod · 0.80

Calls 1

getKeyMethod · 0.45

Tested by 1

mutationFnFunction · 0.64