You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
but in the fact, it throws an error: "Error: Cannot encode type ([object Object]) to a Firestore Value".
Environment details
OS: Windows 10
Node.js version: 9.2.0
npm version: 5.5.1
@google-cloud/firestore version: 0.10.0
Steps to reproduce
constfirst=firestore.collection("collectionName").orderBy("population").limit(25).get().then(function(documentSnapshots){// Get the last visible documentconstlastVisible=documentSnapshots.docs[documentSnapshots.docs.length-1];constnext=firestore.collection("collectionName").orderBy("population").startAfter(lastVisible).limit(25).get().then(data=>{console.log(data.docs.length);});});
I tried the same with @firebase/firestore and it works just fine.
Hello,
According to the https://firebase.google.com/docs/firestore/query-data/query-cursors
we could be able to use a document snapshot to define the query cursor.
but in the fact, it throws an error: "Error: Cannot encode type ([object Object]) to a Firestore Value".
Environment details
Steps to reproduce
I tried the same with
@firebase/firestoreand it works just fine.