Class: SimpleMongoReader
Read in from MongoDB
Implements
Constructors
constructor
• new SimpleMongoReader(client
): SimpleMongoReader
Parameters
Name | Type |
---|---|
client | MongoClient |
Returns
Defined in
packages/core/src/readers/SimpleMongoReader.ts:12
Properties
client
• Private
client: MongoClient
Defined in
packages/core/src/readers/SimpleMongoReader.ts:10
Methods
flatten
▸ flatten(texts
): string
[]
Flattens an array of strings or string arrays into a single-dimensional array of strings.
Parameters
Name | Type | Description |
---|---|---|
texts | (string | string [])[] | The array of strings or string arrays to flatten. |
Returns
string
[]
The flattened array of strings.
Defined in
packages/core/src/readers/SimpleMongoReader.ts:21