firebase / firebase-admin-node

Firebase Admin Node.js SDK

Home Page:https://firebase.google.com/docs/admin/setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[firebase-admin/firestore] Missing export for AggregateQuery, AggregateQuerySnapshot

bdaz opened this issue · comments

[REQUIRED] Step 2: Describe your environment

  • Operating System version: macOS 13.13.1
  • Firebase SDK version: firebase-admin v11.9.0
  • Firebase Product: Admin.firestore
  • Node.js version: v1
  • NPM version: v7.XX

[REQUIRED] Step 3: Describe the problem

firebase-admin/firestore does not export AggregateQuery or AggregateQuerySnapshot.

Steps to reproduce:

import { AggregateQuery } from 'firebase-admin/firestore'

results in:

Module '"firebase-admin/firestore"' has no exported member 'AggregateQuery'

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

Hi @bdaz ,

Both AggregateQuery and AggregateQuerySnapshot is not available in production yet. Please feel free to use count directly. https://firebase.google.com/docs/firestore/query-data/aggregation-queries#node.js