-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
api: firestoreIssues related to the Firestore API.Issues related to the Firestore API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
Writing this POJO works in other APIs but fails in ArrayUnion updates.
Exception thrown
java.lang.reflect.InvocationTargetException: Cannot convert org.wizgraph.backend.data.common.ResourcePointer@7f6c897b to Firestore Value
Environment details
Java version: 8
Firestore maven version:
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-firestore</artifactId>
<version>1.10.0</version>Code example
public static void updateStarredFramework(
DocumentReference ref, String fieldName, ResourcePointer ptr) throws Exception {
FieldValue updateValue = FieldValue.arrayUnion(ptr);
ref.update(fieldName, updateValue).get();
}Metadata
Metadata
Assignees
Labels
api: firestoreIssues related to the Firestore API.Issues related to the Firestore API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.