Open morksinaanab opened 5 years ago
Not implemented. PR welcome!
WHAT A GREAT VENDOR. thanks mate!
Is not available yet ?
This hack does the job
$collection = $this->firestore->collection( $collectionName )->documents();
$querySnapshot = $collection->getIterator();
foreach ($querySnapshot as $document) {
if ($document->data()[$attribute] === $value) {
$document->reference()->delete();
}
}
when I try where, it gives an error: Call to undefined method Morrislaptop\Firestore\CollectionReference::where()
I only see the method 'documents()' in the Query object. Is the rest not implemented? or am i missing something?
I'm looking for reference here: https://firebase.google.com/docs/firestore/query-data/queries