Skip to main content

Interface: DatoOptions

Options for the Dato decorator.

Table of contents

Properties

Properties

collection

Optional collection: string

The dato collection name at MongoDB.

Defined in

src/decorators/dato.ts:25


name

name: string

The dato name, as exposed by GraphQL.

Defined in

src/decorators/dato.ts:21


outputOnly

Optional outputOnly: boolean

Indicates whether this dato contains 'outputOnly' data.

  • An 'outputOnly' dato is one that includes 'virtual' data.
  • The virtual data is not a simple reflection of the MongoDB document; rather, it results from calculations (e.g. aggregation).

Defined in

src/decorators/dato.ts:31