Skip to content

Implement the Query and DocumentReference toString methods #7027

Open
@janseeger

Description

@janseeger

What feature would you like to see?

Would it be possible to override the default Object/Any toString method with ones that let us see the classes inner contents for easier debugging.

Proposed Methods

  • com.google.firebase.firestore.Query.toString -> delegates to com.google.firebase.firestore.core.Query
  • com.google.firebase.firestore.DocumentReference.toString -> delegates to com.google.firebase.firestore.DocumentReference.getPath

In Firebase DatabaseReference this is already the current behaviour, but not in Firestore.

How would you use it?

Help debug issues when you do hundreds of db calls and only a few are failing with com.google.firebase.firestore.CollectionReference@f72b2a8a as the "causing query".

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions