File tree 1 file changed +6
-0
lines changed
packages/firestore/src/api 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1138,6 +1138,9 @@ export class Query<T = PublicDocumentData>
1138
1138
value : unknown
1139
1139
) : Query < T > {
1140
1140
try {
1141
+ // The "as string" cast is a little bit of a hack. `where` accepts the
1142
+ // FieldPath Compat type as input, but is not typed as such in order to
1143
+ // not expose this via our public typings file.
1141
1144
return new Query < T > (
1142
1145
this . firestore ,
1143
1146
query ( this . _delegate , where ( fieldPath as string , opStr , value ) )
@@ -1152,6 +1155,9 @@ export class Query<T = PublicDocumentData>
1152
1155
directionStr ?: PublicOrderByDirection
1153
1156
) : Query < T > {
1154
1157
try {
1158
+ // The "as string" cast is a little bit of a hack. `orderBy` accepts the
1159
+ // FieldPath Compat type as input, but is not typed as such in order to
1160
+ // not expose this via our public typings file.
1155
1161
return new Query < T > (
1156
1162
this . firestore ,
1157
1163
query ( this . _delegate , orderBy ( fieldPath as string , directionStr ) )
You can’t perform that action at this time.
0 commit comments