Replies: 1 comment
-
Hello, got figure it out but still a mystery. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello RN Firebase team & users !
I am currently using Firestore solution and we are creating a new document inside a collection as the user click on a button.
Then, I need to update a document value in another path with the DocumentReference of the previous document created.
I manage to do everything but I can't figure out how to update the document value with the reference.
I did try to get the reference of the last query that creates the new document like so :
docRef = await signaturesDb().add(newSignature);
Then I update with a simple
await donationListingItemsDb(parentId, parentListingId) .doc(donationListingItemId) .update({receiverSignature: docRef);
But my app crashed with a malformed calls from JS: field sizes are different.
I am not sure what I am doing wrong but, I just wanted to know if this feature is supported because it doesn't mention writing DocumentReference in the documentation.
Thank you for your time
Pierre
Beta Was this translation helpful? Give feedback.
All reactions