Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.
This repository was archived by the owner on May 19, 2025. It is now read-only.

Emberfire v3 bug in the firestore adapter #613

@maxymczech

Description

@maxymczech

In case there are multiple orderBy clauses, startAt, startAfter, endAt and endBefore query methods expect spread of values, not array of values. You should change this:

    if (options.endBefore) {
      ref = ref.endBefore(options.endBefore);
    }

to something this:

    if (options.endBefore) {
      if (Array.isArray(options.endBefore)) {
        ref = ref.endBefore(...options.endBefore);
      } else {
        ref = ref.endBefore(options.endBefore);
      }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions