@@ -480,8 +480,7 @@ export function newQueryFilter(
480
480
if ( op === Operator . ARRAY_CONTAINS || op === Operator . ARRAY_CONTAINS_ANY ) {
481
481
throw new FirestoreError (
482
482
Code . INVALID_ARGUMENT ,
483
- `Invalid Query. You can't perform '${ op } ' ` +
484
- 'queries on FieldPath.documentId().'
483
+ `Invalid Query. You can't perform '${ op } ' queries on documentId().`
485
484
) ;
486
485
} else if ( op === Operator . IN || op === Operator . NOT_IN ) {
487
486
validateDisjunctiveFilterElements ( value , op ) ;
@@ -639,7 +638,7 @@ export function newQueryBoundFromFields(
639
638
if ( ! isCollectionGroupQuery ( query ) && rawValue . indexOf ( '/' ) !== - 1 ) {
640
639
throw new FirestoreError (
641
640
Code . INVALID_ARGUMENT ,
642
- `Invalid query. When querying a collection and ordering by FieldPath. documentId(), ` +
641
+ `Invalid query. When querying a collection and ordering by documentId(), ` +
643
642
`the value passed to ${ methodName } () must be a plain document ID, but ` +
644
643
`'${ rawValue } ' contains a slash.`
645
644
) ;
@@ -649,7 +648,7 @@ export function newQueryBoundFromFields(
649
648
throw new FirestoreError (
650
649
Code . INVALID_ARGUMENT ,
651
650
`Invalid query. When querying a collection group and ordering by ` +
652
- `FieldPath. documentId(), the value passed to ${ methodName } () must result in a ` +
651
+ `documentId(), the value passed to ${ methodName } () must result in a ` +
653
652
`valid document path, but '${ path } ' is not because it contains an odd number ` +
654
653
`of segments.`
655
654
) ;
@@ -681,15 +680,15 @@ function parseDocumentIdValue(
681
680
if ( documentIdValue === '' ) {
682
681
throw new FirestoreError (
683
682
Code . INVALID_ARGUMENT ,
684
- 'Invalid query. When querying with FieldPath. documentId(), you ' +
683
+ 'Invalid query. When querying with documentId(), you ' +
685
684
'must provide a valid document ID, but it was an empty string.'
686
685
) ;
687
686
}
688
687
if ( ! isCollectionGroupQuery ( query ) && documentIdValue . indexOf ( '/' ) !== - 1 ) {
689
688
throw new FirestoreError (
690
689
Code . INVALID_ARGUMENT ,
691
690
`Invalid query. When querying a collection by ` +
692
- `FieldPath. documentId(), you must provide a plain document ID, but ` +
691
+ `documentId(), you must provide a plain document ID, but ` +
693
692
`'${ documentIdValue } ' contains a '/' character.`
694
693
) ;
695
694
}
@@ -698,7 +697,7 @@ function parseDocumentIdValue(
698
697
throw new FirestoreError (
699
698
Code . INVALID_ARGUMENT ,
700
699
`Invalid query. When querying a collection group by ` +
701
- `FieldPath. documentId(), the value provided must result in a valid document path, ` +
700
+ `documentId(), the value provided must result in a valid document path, ` +
702
701
`but '${ path } ' is not because it has an odd number of segments (${ path . length } ).`
703
702
) ;
704
703
}
@@ -708,7 +707,7 @@ function parseDocumentIdValue(
708
707
} else {
709
708
throw new FirestoreError (
710
709
Code . INVALID_ARGUMENT ,
711
- `Invalid query. When querying with FieldPath. documentId(), you must provide a valid ` +
710
+ `Invalid query. When querying with documentId(), you must provide a valid ` +
712
711
`string or a DocumentReference, but it was: ` +
713
712
`${ valueDescription ( documentIdValue ) } .`
714
713
) ;
0 commit comments