Preparing search index...
The search index is not available
Forest Admin - API reference
Forest Admin - API reference
@forestadmin/datasource-toolkit
BaseDataSource
Class BaseDataSource<T>
Type Parameters
T
extends
Collection
=
Collection
Hierarchy
BaseDataSource
Implements
DataSource
Index
Constructors
constructor
Properties
_collections
Accessors
collections
schema
Methods
add
Collection
get
Collection
render
Chart
Constructors
constructor
new
Base
Data
Source
<
T
>
(
)
:
BaseDataSource
<
T
>
Type Parameters
T
extends
Collection
=
Collection
Returns
BaseDataSource
<
T
>
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
:
T
)
:
void
Parameters
collection:
T
Returns
void
get
Collection
get
Collection
(
name
:
string
)
:
T
Parameters
name:
string
Returns
T
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
Base
Data
Source
constructor
_collections
collections
schema
add
Collection
get
Collection
render
Chart