Firestore/src/Transaction.php
public function create(DocumentReference $document, array $fields)
    {
        $this->writer->create($document->name(), $fields);

        return $this;
    }
public function create(DocumentReference $document, array $fields)
    {
        $this->writer->create($document->name(), $fields);

        return $this;
    }
public function create ( DocumentReference $ document , array $ fields ) { $ this -> writer -> create ( $ document -> name ( ) , $ fields ) ; return $ this ; }
Enqueue an operation to create a Firestore document.

Example:
```
$transaction->create($document, [
'name' => 'John',
'country' => 'USA'
]);
```

@param DocumentReference $document The document to create.
@param array $fields An array containing fields, where keys are the field
names, and values are field values. Nested arrays are allowed.
Note that unlike
{@see Google\Cloud\Firestore\DocumentReference::update()}, field
paths are NOT supported by this method.
@return Transaction
Enqueue an operation to create a Firestore document .