create abstract method

TModel create([
  1. String? id
])

Create a new document of type TModel from the contents of the collection.

The document will be created with the collection path of modelQuery plus id (if null, a random uuid will be used).

コレクションの内容から新しくTModel型のドキュメントを作成します。

modelQueryのコレクションパスにidnullの場合はランダムなuuidが使用されます)を加えたパスでドキュメントが作成されます。

Implementation

TModel create([String? id]);