firebase-admin-interop icon indicating copy to clipboard operation
firebase-admin-interop copied to clipboard

DocumentQuery where/orderBy don't allow sentinel documentId as fieldName

Open pulyaevskiy opened this issue 7 years ago • 0 comments

We currently assume that field names are always strings, but according to Firestore docs it should be possible to do something like this:

var ref = app.firestore().collection('posts').orderBy(Firestore.documentId());
// ... rest

pulyaevskiy avatar May 31 '18 17:05 pulyaevskiy