File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Firestore for Google Apps Scripts
2
2
3
3
[ ![ 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 )
4
5
5
6
### A Google Apps Script library for accessing Google Cloud Firestore.
6
7
Original file line number Diff line number Diff line change @@ -34,8 +34,10 @@ var FirestoreQuery_ = function (from, callback) {
34
34
35
35
// @see {@link https://firebase.google.com/docs/firestore/reference/rest/v1/StructuredQuery#FieldReference Field Reference }
36
36
const fieldRef = function ( field ) {
37
- return { 'fieldPath' : field }
37
+ var escapedField = field . split ( '.' ) . map ( function ( f ) { return '`' + f . replace ( '`' , '\\`' ) + '`' } ) . join ( '.' )
38
+ return { 'fieldPath' : escapedField }
38
39
}
40
+
39
41
const filter = function ( field , operator , value ) {
40
42
operator = operator . toLowerCase ( ) . replace ( '_' , '' )
41
43
You can’t perform that action at this time.
0 commit comments