Skip to content

Commit 5825cb6

Browse files
committed
remove __path__ hack
1 parent 762b005 commit 5825cb6

File tree

1 file changed

+1
-1
lines changed
  • google-cloud-firestore/src/main/java/com/google/cloud/firestore/pipeline/expressions

1 file changed

+1
-1
lines changed

google-cloud-firestore/src/main/java/com/google/cloud/firestore/pipeline/expressions/Field.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private Field(FieldPath path) {
7272
@BetaApi
7373
public static Field of(String path) {
7474
if (path.equals(DOCUMENT_ID)) {
75-
return new Field(FieldPath.of("__path__"));
75+
return new Field(FieldPath.documentId());
7676
}
7777
return new Field(FieldPath.fromDotSeparatedString(path));
7878
}

0 commit comments

Comments
 (0)