Skip to main content

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

src/decorators/datoProp.ts:95


nullable

Optional nullable: boolean

Indicates if the property is nullable.

Defined in

src/decorators/datoProp.ts:83


oneToMany

Optional oneToMany: OneToMany

Options for defining a one-to-many relation.

Defined in

src/decorators/datoProp.ts:91


oneToOne

Optional oneToOne: OneToOne

Options for defining a one-to-one relation.

Defined in

src/decorators/datoProp.ts:99


primaryKey

Optional primaryKey: boolean

Indicates if the property is a primary key.

Defined in

src/decorators/datoProp.ts:87


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

Defined in

src/decorators/datoProp.ts:109