Interface: DatoPropOptions
Options for the DatoProp
decorator.
Table of contents
Properties
Properties
manyToOne
• Optional
manyToOne: ManyToOne
Options for defining a many-to-one relation.
Defined in
nullable
• Optional
nullable: boolean
Indicates if the property is nullable.
Defined in
oneToMany
• Optional
oneToMany: OneToMany
Options for defining a one-to-many relation.
Defined in
oneToOne
• Optional
oneToOne: OneToOne
Options for defining a one-to-one relation.
Defined in
primaryKey
• Optional
primaryKey: boolean
Indicates if the property is a primary key.
Defined in
propScope
• Optional
propScope: PropScope
The scope of the property.
- extrnal: the property exposed only at GraphQL (but not exists at MongoDB).
- internal: the property exists only at MongoDB (but not exposed at GraphQL).
Defined in
src/decorators/datoProp.ts:105
type
• Optional
type: () => any
The type of the property (how it exists at MongoDB, and how it exposed at GraphQL).
Type declaration
▸ (): any
The type of the property (how it exists at MongoDB, and how it exposed at GraphQL).
Returns
any