Preparing search index...
The search index is not available
Forest Admin - API reference
Forest Admin - API reference
@forestadmin/datasource-mongoose
MongooseDatasource
Class MongooseDatasource
Hierarchy
BaseDataSource
<
MongooseCollection
>
MongooseDatasource
Index
Constructors
constructor
Properties
_collections
Accessors
collections
schema
Methods
add
Collection
get
Collection
render
Chart
Constructors
constructor
new
Mongoose
Datasource
(
connection
:
Connection
|
__module
, options
?:
MongooseOptions
, logger
?:
Logger
)
:
MongooseDatasource
Parameters
connection:
Connection
|
__module
options:
MongooseOptions
= {}
logger:
Logger
= null
Returns
MongooseDatasource
Properties
Protected
_collections
_collections
:
{
[collectionName:
string
]
:
T
;
}
Type declaration
[
collectionName:
string
]:
T
Accessors
collections
get
collections
(
)
:
T
[]
Returns
T
[]
schema
get
schema
(
)
:
DataSourceSchema
Returns
DataSourceSchema
Methods
add
Collection
add
Collection
(
collection
:
MongooseCollection
)
:
void
Parameters
collection:
MongooseCollection
Returns
void
get
Collection
get
Collection
(
name
:
string
)
:
MongooseCollection
Parameters
name:
string
Returns
MongooseCollection
render
Chart
render
Chart
(
caller
:
Caller
, name
:
string
)
:
Promise
<
unknown
>
Parameters
caller:
Caller
name:
string
Returns
Promise
<
unknown
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Modules
Forest
Admin -
API reference
@forestadmin/agent
@forestadmin/datasource-
customizer
@forestadmin/datasource-
mongoose
@forestadmin/datasource-
sequelize
@forestadmin/datasource-
sql
@forestadmin/datasource-
toolkit
@forestadmin/plugin-
aws-
s3
@forestadmin/plugin-
export-
advanced
Mongoose
Datasource
constructor
_collections
collections
schema
add
Collection
get
Collection
render
Chart