Click here to Skip to main content
15,880,725 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:

TypeScript
updateNames(name:string)
{
  return this.namesCollectionRef.doc(id).update({
    personName : arrayUnion(name)
  })
}
Posted
Updated 20-Nov-22 22:13pm
v2

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