I keep getting the error: Error: Too many arguments provided to Query.startAt(). when using AngularFire2

Viewed 4399

I have a simple function that accepts parameters and returns the dataset

search(searchValues , numOfItems, startKey?) {
    return this.db.collection('gppContract', ref => ref
    .where('financialYear', '==', searchValues.financialYear)
    .startAt(startKey)
    .orderBy('amount', 'desc')
    .limit(numOfItems + 1))
      .valueChanges();


  }

What am i doing wrong or missing? am at a loss here.

1 Answers
Related