lundi 24 mai 2021

Is there any possible to add one new object if doesn't exist in "array of object" using firestore query?

Example : Assume [{ inst:"EVA", std:"12th" }, { inst:"KSF", std:"12th" }]

example collection image

As per the above example, In my case if "inst:"EVA"" is already there in "qulaification" array so we need to updated the object from existing one. Then "inst:"KSF"" is not already exist in "qulaification" array so we need to add that one.

Help me if there are any way to update using firestore query.




Aucun commentaire:

Enregistrer un commentaire