Skip to content

arrayUnion fail in 7.3.0 #523

Closed
Closed
@gnarco

Description

@gnarco

Hi

I was using firebase-admin@7.0.0

I updated to firebase-admin@7.3.0

I use arrayUnion.
Working perfectly in 7.0.0

Got
Error: Update() requires either a single JavaScript object or an alternating list of field/value pairs that can be followed by an optional precondition. Argument "dataOrField" is not a valid Document. Couldn't serialize object of type "ArrayUnionTransform" (found in field events). Firestore doesn't support JavaScript objects with custom prototypes (i.e. objects that were created via the "new" operator).
in 7.3.0

I reverted to 7.0.0, working again.

Is arrayUnion usage changed between these 2 versions ?

Thanks

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions