Preparing search index...
The search index is not available
Forest Admin - API reference
Forest Admin - API reference
@forestadmin/datasource-toolkit
SchemaUtils
Class SchemaUtils
Hierarchy
SchemaUtils
Index
Constructors
constructor
Methods
get
Primary
Keys
get
To
Many
Relation
is
Foreign
Key
is
Primary
Key
Constructors
constructor
new
Schema
Utils
(
)
:
SchemaUtils
Returns
SchemaUtils
Methods
Static
get
Primary
Keys
get
Primary
Keys
(
schema
:
CollectionSchema
)
:
string
[]
Parameters
schema:
CollectionSchema
Returns
string
[]
Static
get
To
Many
Relation
get
To
Many
Relation
(
schema
:
CollectionSchema
, relationName
:
string
)
:
OneToManySchema
|
ManyToManySchema
Parameters
schema:
CollectionSchema
relationName:
string
Returns
OneToManySchema
|
ManyToManySchema
Static
is
Foreign
Key
is
Foreign
Key
(
schema
:
CollectionSchema
, name
:
string
)
:
boolean
Parameters
schema:
CollectionSchema
name:
string
Returns
boolean
Static
is
Primary
Key
is
Primary
Key
(
schema
:
CollectionSchema
, fieldName
:
string
)
:
boolean
Parameters
schema:
CollectionSchema
fieldName:
string
Returns
boolean
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
Schema
Utils
constructor
get
Primary
Keys
get
To
Many
Relation
is
Foreign
Key
is
Primary
Key