File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11# Firestore for Google Apps Scripts
22
33[ ![ JavaScript Style Guide] ( https://img.shields.io/badge/code_style-standard-brightgreen.svg )] ( https://standardjs.com )
4+ [ ![ clasp] ( https://img.shields.io/badge/built%20with-clasp-4285f4.svg )] ( https://github.com/google/clasp )
45
56### A Google Apps Script library for accessing Google Cloud Firestore.
67
Original file line number Diff line number Diff line change @@ -34,8 +34,10 @@ var FirestoreQuery_ = function (from, callback) {
3434
3535 // @see {@link https://firebase.google.com/docs/firestore/reference/rest/v1/StructuredQuery#FieldReference Field Reference }
3636 const fieldRef = function ( field ) {
37- return { 'fieldPath' : field }
37+ var escapedField = field . split ( '.' ) . map ( function ( f ) { return '`' + f . replace ( '`' , '\\`' ) + '`' } ) . join ( '.' )
38+ return { 'fieldPath' : escapedField }
3839 }
40+
3941 const filter = function ( field , operator , value ) {
4042 operator = operator . toLowerCase ( ) . replace ( '_' , '' )
4143
You can’t perform that action at this time.
0 commit comments