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

Function getKey

packages/rxdb-db-collection/src/rxdb.ts:113–116  ·  view source on GitHub ↗
(item: Record<string, unknown>)

Source from the content-addressed store, hash-verified

111 // "getKey"
112 const primaryPath = rxCollection.schema.primaryPath
113 function getKey(item: Record<string, unknown>): string {
114 const key: string = item[primaryPath] as string
115 return key
116 }
117
118 /**
119 * "sync"

Callers 4

initialFetchFunction · 0.70
rxdbCollectionOptionsFunction · 0.70
loadFunction · 0.50
listenFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected