Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "lib/ChronoGraph/replica/ReferenceBucket"

Index

Classes

Functions

Functions

Const bucket

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

    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 field configuration properties

    • Default value fieldCls: ReferenceBucketField | T = ReferenceBucketField

      Optional. Default value has been changed to ReferenceBucketField

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

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

        • target: Object
        • propertyKey: string | symbol

        Returns void

Generated using TypeDoc