|
void endsWithFunction() throws ExecutionException, InterruptedException { |
|
// [START ends_with] |
|
Pipeline.Snapshot result = |
|
firestore |
|
.pipeline() |
|
.collection("inventory/devices/laptops") |
|
.select(endsWith(field("name"), "16 inch").as("16InLaptops")) |
|
.execute() |
|
.get(); |
|
// [END ends_with] |
|
System.out.println(result.getResults()); |
|
} |
throws error
java.util.concurrent.ExecutionException: com.google.api.gax.rpc.InvalidArgumentException: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Invalid property path "16InLaptops". Unquoted property paths must match regex ([a-zA-Z_][a-zA-Z_0-9]*), and quoted property paths must match regex (`(?:[^`\\]|(?:\\.))+`)
java-firestore/samples/preview-snippets/src/main/java/com/example/firestore/PipelineSnippets.java
Lines 1271 to 1282 in be110ee
throws error