React-redux-firebase: bug(firestoreConnect): startAt parameter dropped from query when used with other parameters

Created on 10 Mar 2018  路  4Comments  路  Source: prescottprue/react-redux-firebase

when you use

firestoreConnect((props) => {[
      {
        collection: 'posts',
        orderBy: [['headline', 'desc']],
        startAt: 'headline'
        limit: 3
      }
    ]
 })

it does not support startAt parameter. It drops that parameter. See the request from chrome.

{"database":"projects/**/databases/(default)","addTarget":{"query":{"structuredQuery":{"from":[{"collectionId":"posts"}],"orderBy":[{"field":{"fieldPath":"headline"},"direction":"DESCENDING"},{"field":{"fieldPath":"__name__"},"direction":"DESCENDING"}],"limit":{"value":3}},"parent":"projects/**/databases/(default)"},"targetId":**}}

bug

All 4 comments

@mukeshyadav-cdac I believe this is due to code within redux-firestore, but we can still track progress on it in this issue. Thanks for reporting.

@prescottprue may i look into this and fix it?

@mukeshyadav-cdac Yeah that would be great! That is what open source is all about 馃嵒 .

You will most likely want to be changing code in the query utilities of redux-firestore.

@prescottprue This has been fixed in latest version mine was older one.

Was this page helpful?
0 / 5 - 0 ratings