Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "lib/ChronoGraph/replica/Reference"

Index

Classes

Functions

Functions

Const reference

  • reference(fieldConfig?: {}, fieldCls?: ReferenceField | T): (target: Object, propertyKey: string | symbol) => void
  • Specialized version of the field decorator, which should be used to mark the references. All it does is replace the default value of the second argument to the ReferenceField.

    class Author extends Person {
        @bucket()
        books           : Set<Book>
    }
    
    class Book extends Entity.mix(Base) {
        @reference({ bucket : 'books' })
        writtenBy       : Author
    }

    Parameters

    • Optional fieldConfig: {}

      Object with the configuration properties

    • Default value fieldCls: ReferenceField | T = ReferenceField

      Optional. Default value has been changed to ReferenceField

    Returns (target: Object, propertyKey: string | symbol) => void

      • (target: Object, propertyKey: string | symbol): void
      • Parameters

        • target: Object
        • propertyKey: string | symbol

        Returns void

Generated using TypeDoc