Skip to main content

Interface: OneToMany

Options for defining a one-to-many relation.

Hierarchy

Table of contents

Properties

Properties

foreignField

foreignField: string

The foreign field for the relation.

Defined in

src/decorators/datoProp.ts:53


refType

refType: () => Type<any>

The type of the referred dato, specifies how it exists in MongoDB and how it is exposed in GraphQL.

Type declaration

▸ (): Type<any>

The type of the referred dato, specifies how it exists in MongoDB and how it is exposed in GraphQL.

Returns

Type<any>

Inherited from

Relation.refType

Defined in

src/decorators/datoProp.ts:43