Skip to content

[cloud_firestore] error-Invalid argument (dartObject): Could not convert: Instance of 'Timestamp' #2153

Closed
@kushvatsa

Description

@kushvatsa

Hey @ditman , While doing pagination on flutter web, cloud firestore gives error error-Invalid argument (dartObject): Could not convert: Instance of 'Timestamp'

try {
      Firestore fireStore = Firestore.instance;
      final QuerySnapshot docs = await fireStore
          .collectionGroup("vote")
          .where("uid", isEqualTo: uid)
          .orderBy(fieldVal, descending: true)
          .startAfterDocument(doc)
          .limit(2)
          .getDocuments();
 } catch (e) {
      print("error-" + e.toString());
      return null;
    }

Metadata

Metadata

Assignees

Labels

type: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions