grahamearley / FirestoreGoogleAppsScript

A Google Apps Script library for accessing Google Cloud Firestore.
http://grahamearley.website/blog/2017/10/18/firestore-in-google-apps-script.html
MIT License
648 stars 109 forks source link

Support updating nested fields with dot notation #148

Open zhezhang77 opened 2 years ago

zhezhang77 commented 2 years ago

Fix #146 Unable to update nested fields with custome mask in updateDocument()

  1. Add a flag 'nestedField' in updateDocument() to control if treating fields with dot notation as nested fields or single fields. If it is not set or set to false, the library will keep the original behaviour.
  2. Fields in the updater will be merged based on their inserted order
  3. Add 3 new tests to for the new flag