ahsankhatri / firestore-php

Firestore PHP Client (without gRPC extension)
MIT License
62 stars 57 forks source link

How to Query Documents by ID #18

Open ephraimlambarte opened 4 years ago

ephraimlambarte commented 4 years ago

$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.

nafeal3mri commented 4 years ago

i'm stuck in this too :(

ahsankhatri commented 4 years ago

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