event.data
undefined in onDocumentWritten
when migrating from V1 to V2 API
#1659
Labels
event.data
undefined in onDocumentWritten
when migrating from V1 to V2 API
#1659
Related issues
#1464, but we measured the size of the responses and it does not exceed the 10MB threshold discussed in that issue.
[REQUIRED] Version info
node: v18.20.4
firebase-functions: 6.1.1
firebase-tools: 13.28.0
firebase-admin: 13.0.1
[REQUIRED] Test case
typesense/firestore-typesense-search#98
[REQUIRED] Steps to reproduce
When migrating from Firebase Functions v1 to v2 API, specifically from f
unctions.firestore.document().onWrite()
toonDocumentWritten()
, the event.data property is coming back as undefined.The existing V1 implementation of our
backfill
function:Migrating over to the
V2
API:Will result in functionality breaking, as
event.data
comes back as undefined.Here's the commit and diff in question.
[REQUIRED] Expected behavior
Returning the
data
object[REQUIRED] Actual behavior
event.data
is undefined.Were you able to successfully deploy your functions?
Did not deploy, caught in CI. The PR posted includes both a description of the changes and the test failure.
The text was updated successfully, but these errors were encountered: