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
_native
Query
Connections
Accessors
collections
native
Query
Connections
schema
Methods
add
Collection
add
Native
Query
Connection
execute
Native
Query
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
Protected
_native
Query
Connections
_native
Query
Connections
:
{
[connectionName:
string
]
:
unknown
;
}
Type declaration
[
connectionName:
string
]:
unknown
Accessors
collections
get
collections
(
)
:
T
[]
Returns
T
[]
native
Query
Connections
get
nativeQueryConnections
(
)
:
Record
<
string
,
unknown
>
Returns
Record
<
string
,
unknown
>
schema
get
schema
(
)
:
DataSourceSchema
Returns
DataSourceSchema
Methods
add
Collection
add
Collection
(
collection
:
MongooseCollection
)
:
void
Parameters
collection:
MongooseCollection
Returns
void
add
Native
Query
Connection
add
Native
Query
Connection
(
connectionName
:
string
, definition
:
unknown
)
:
void
Parameters
connectionName:
string
definition:
unknown
Returns
void
execute
Native
Query
execute
Native
Query
(
connectionName
:
string
, query
:
string
, contextVariables
:
Record
<
string
,
unknown
>
)
:
Promise
<
unknown
>
Parameters
connectionName:
string
query:
string
contextVariables:
Record
<
string
,
unknown
>
Returns
Promise
<
unknown
>
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
_native
Query
Connections
collections
native
Query
Connections
schema
add
Collection
add
Native
Query
Connection
execute
Native
Query
get
Collection
render
Chart