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

FieldValue support #163

Closed risalfajar closed 1 year ago

risalfajar commented 1 year ago

Is there any plan to support FieldValue?

It's sentinel values that can be used when writing document fields with set() or update(): isEqual arrayRemove arrayUnion delete increment serverTimestamp

LaughDonor commented 1 year ago

That's the Javascript API, this library is interfaces with Firestore using the REST API.

risalfajar commented 1 year ago

So you mean this is impossible to support?

risalfajar commented 1 year ago

Someone said it's possible to do in this SO Answer

LaughDonor commented 1 year ago

Interesting, I never noticed the Transforms parameter. I guess it is possible, but not implemented in this Library.

risalfajar commented 1 year ago

"Not yet" :) Could you reopen the issue please? So that this can be implemented in the future.

LaughDonor commented 1 year ago

Could you open a new issue that refers to this in the REST API instead of the JS API like you have linked?

risalfajar commented 1 year ago

Opened in #164, thanks!