daily pastebin goal
73%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   name: "test",
  3.   isActive: true,
  4.   items: [
  5.    {
  6.      id: "123",
  7.      itemName: "testItem",
  8.      qty: 1
  9.    },
  10.    {
  11.      id: "555",
  12.      itemName: "anotherItem",
  13.      qty: 5
  14.    }]
  15. }
  16.    
  17. this.firestore.collection(<collectionName>).doc(<docID>).update({
  18.  answers: firestore.FieldValue.arrayUnion(<AnswersObject>)
  19. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top