Skip to content

Can't use ignoreUndefinedProperties with Firestore triggers #1017

@50an6xy06r6n

Description

@50an6xy06r6n

Related issues

[REQUIRED] Version info

node: 16.9.0

firebase-functions: 3.15.5

firebase-tools: 9.23.1

firebase-admin: 9.21.0

[REQUIRED] Test case

const test = functions.firestore
    .document("testDoc")
    .onWrite(async (change, context) => {
        await change.after.ref.set({ testField: undefined });
    });

[REQUIRED] Steps to reproduce

Put in index.ts and make a change to testDoc.

[REQUIRED] Expected behavior

There should be a way to set ignoreUndefinedProperties to true when using functions triggers.

[REQUIRED] Actual behavior

There doesn't seem to be a way to do this

Were you able to successfully deploy your functions?

yeah it deploys

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions