firestore-php icon indicating copy to clipboard operation
firestore-php copied to clipboard

How to Query Documents by ID

Open ephraimlambarte opened this issue 6 years ago • 2 comments

$companies $this->firestoreClient->listDocuments('companies');

So far this is im stuck with, but i dont want to select all the documents under companies collection, and i dont see any way in the documentation to only select specific documents from a collection of documents.

ephraimlambarte avatar Jan 28 '20 10:01 ephraimlambarte

i'm stuck in this too :(

nafeal3mri avatar Feb 22 '20 21:02 nafeal3mri

You can just do $firestoreClient->getDocument('companies/document_id')

ahsankhatri avatar Apr 04 '20 20:04 ahsankhatri