Skip to content

@firebase/testing does not handle FieldValue.increment #1799

@damonmaria

Description

@damonmaria

Describe your environment

  • Operating System version: MacOS 10.14.5
  • firebase-admin version: 7.3.0
  • @firebase/testing version: 0.9.4
  • Firebase Product: firestore, emulator, testing

Describe the problem

When I try and use FieldValue.increment in an update or set when using @firebase/testing (with the Firestore emulator) I get:
FIRESTORE (6.0.2) INTERNAL ASSERTION FAILED: AsyncQueue is already failed: Error: FIRESTORE (6.0.2) INTERNAL ASSERTION FAILED: Transform results missing for TransformMutation.

Relevant Code:

This produces the error:

await siteDoc.ref.update({ field: firebase.firestore.FieldValue.increment(1) })

If I don't use increment then it works:

await siteDoc.ref.update({ field: 1 })

I understand this could be the emulator not being up to date but thought I'd post here first.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions