Firebase-admin-node: document usage of arrayUnion() & arrayRemove()

Created on 3 Sep 2018  路  9Comments  路  Source: firebase/firebase-admin-node

  • Firebase SDK version: v0.16.1

Are they currently supported as in https://github.com/googleapis/nodejs-firestore/pull/287 ? if so, please update the document at https://firebase.google.com/docs/firestore/manage-data/add-data

firestore

All 9 comments

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@samtstern is going to take care of this.

@schmidt-sebastian can this be closed now?

Yes!

It does not seem to be working when the field does not yet exist.

Is this the intended behaviour ?

Thanks

These operators create the field if the field does not yet exist, or convert it to an array if it is of a different type. Does this not work for you?

Hi @schmidt-sebastian - sorry, my mistake - it does work.

Was this page helpful?
0 / 5 - 0 ratings