@aicacia/db
Preparing search index...
createTestCollection
Function createTestCollection
createTestCollection
<
T
extends
Record
<
string
,
any
>
>
(
docs
?:
T
[]
,
keyField
?:
string
,
)
:
TestCollectionResult
<
T
>
Create a test collection backed by
MemoryAdapter
.
Type Parameters
T
extends
Record
<
string
,
any
>
Parameters
Optional
docs
:
T
[]
keyField
:
string
= "id"
Returns
TestCollectionResult
<
T
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
@aicacia/db
Loading...
Create a test collection backed by
MemoryAdapter.