Click here to Skip to main content
15,916,835 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm trying to push element to the array in firestore but i'm getting firebase error , also fieldvalue is not supported .

version using : Angular: 14

FirebaseError: Function DocumentReference.update() called with invalid data. Unsupported field value: a custom gh object

What I have tried:

  return this.namesCollectionRef.doc(id).update({
    personName : arrayUnion(name)
Updated 20-Nov-22 22:13pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900