saveTypedDocument<D extends TypedDocumentObject<Object>, MD extends TypedMutableDocumentObject<TypedDocumentObject<Object>, TypedDocumentObject<Object>>> abstract method

  1. @Deprecated('Use defaultCollection.saveTypedDocument instead.')
  2. @override
  3. @experimental
  4. @useResult
SyncSaveTypedDocument<D, MD> saveTypedDocument<D extends TypedDocumentObject<Object>, MD extends TypedMutableDocumentObject<TypedDocumentObject<Object>, TypedDocumentObject<Object>>>(
  1. TypedMutableDocumentObject<D, MD> document
)
override

Creates and returns an object, which can be used to save a typed document to this database.

A call to this method will not save the document to the database. Call one of the methods of the returned object to finally save the document.

See also:

Implementation

@Deprecated('Use defaultCollection.saveTypedDocument instead.')
@override
@experimental
@useResult
SyncSaveTypedDocument<D, MD> saveTypedDocument<
  D extends TypedDocumentObject,
  MD extends TypedMutableDocumentObject
>(TypedMutableDocumentObject<D, MD> document);