create<T> method

ModelAdapterDocumentQuery create<T>([
  1. String? id
])

Create a ModelAdapterDocumentQuery for a document under a collection using its own CollectionModelQuery and id.

If id is Null, uuid (32-byte non-hyphenated string) is used.

origin, callback will be null, and listen will be false.

自身のCollectionModelQueryidを用いてコレクション配下のドキュメント用のModelAdapterDocumentQueryを作成します。

idNullの場合はuuid(32バイトのハイフン無しの文字列)が利用されます。

origincallbackNullになり、listenfalseになります。

Implementation

ModelAdapterDocumentQuery create<T>([
  String? id,
]) {
  return ModelAdapterDocumentQuery(
    query: query.create(id),
    origin: null,
    callback: null,
    listen: false,
    headers: headers,
    method: method,
  );
}