Created
April 7, 2020 20:44
-
-
Save luishgp/86329ac5eaf5e8e286bbb117cbde781d to your computer and use it in GitHub Desktop.
Update me batch firestore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$batch = $firestore->batch(); | |
$ref = $firestore->collection('teste')->document($collect); | |
$batch->update($ref, [ | |
['path' => 'nome_usuario_coleta', 'value' => 'Teste de Atualização em Batch'] | |
]); | |
$batch->set($ref, [ | |
'teste' => 'Ok' | |
]); | |
$batch->commit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment