Skip to content

Firestore doesn't support JavaScript objects with custom prototypes #8337

@nomagick

Description

@nomagick

Firebase SDK Product:

Firestore

Describe the problem

Firestore doesn't support JavaScript objects with custom prototypes.

"Doesn't support JavaScript objects with custom prototypes" means it would not work with custom classes.

This disability had caused mass regression in code quality.

Could you simply call toJSON() of any unknown object or pick its own properties like a normal person would do?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions