ModelRef<T> typedef

ModelRef<T> = ModelRefBase<T>?

Class for defining relationships between models.

You can have that relationship as data by passing a query for the related document to modelQuery.

Since it is a mutable class and has an interface to DocumentBase, it can be replaced by DocumentBase by implementing ModelRef and mixing in ModelRefMixin.

モデル間のリレーションを定義するためのクラス。

modelQueryに関連するドキュメントのクエリーを渡すことでそのリレーションをデータとして持つことができます。

ミュータブルクラスでかつDocumentBaseのインターフェースを備えているためModelRefを実装し、ModelRefMixinをミックスインすることでDocumentBaseで置き換えることが可能です。

Implementation

typedef ModelRef<T> = ModelRefBase<T>?;