Interface: GeneratedDataStore
Hierarchy
-
GeneratedDataStore
Methods
close
▸ close(): Promise
<void
>
Returns
Promise
<void
>
Defined in
packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:50
find
▸ find(filter
): Promise
<undefined
| SomeGeneratedData
[]>
Parameters
Name | Type |
---|---|
filter | unknown |
Returns
Promise
<undefined
| SomeGeneratedData
[]>
Defined in
packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:49
findByCommandRunId
▸ findByCommandRunId(commandRunId
): Promise
<undefined
| SomeGeneratedData
[]>
Parameters
Name | Type |
---|---|
commandRunId | ObjectId |
Returns
Promise
<undefined
| SomeGeneratedData
[]>
Defined in
packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:46
findById
▸ findById(generatedDataId
): Promise
<undefined
| SomeGeneratedData
>
Parameters
Name | Type |
---|---|
generatedDataId | ObjectId |
Returns
Promise
<undefined
| SomeGeneratedData
>
Defined in
packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:45
insertMany
▸ insertMany(generatedData
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
generatedData | SomeGeneratedData [] |
Returns
Promise
<boolean
>
Defined in
packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:44
insertOne
▸ insertOne(generatedData
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
generatedData | SomeGeneratedData |
Returns
Promise
<boolean
>
Defined in
packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:43