question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[firestore] Shouldn't a start/end query cursor allow empty set?

See original GitHub issue
var anomaly = await firestoreDB.Value.Collection("col").OrderByDescending("field").StartAt(new object[0])

This above line cause an error does not allow empty set at a start/end query cursor

But doesn’t this should be allowed for query the empty array and null? Actually it should let me got the whole documents which has value of that field not an array nor object?

Is it really a limit in firestore or just this library?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21

github_iconTop GitHub Comments

1reaction
jskeetcommented, Nov 8, 2018

Sure, happy to. (It’s effectively covered in the new conformance tests which I haven’t merged yet, but I can do it more explicitly.)

1reaction
jskeetcommented, Oct 15, 2018

Just checked, and yes, it should be allowed. I’ll see if I can get to that this week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Paginate data with query cursors | Firestore - Firebase
With query cursors in Cloud Firestore, you can split data returned by a query into batches according to the parameters you define in...
Read more >
Firebase "read" rules executing even when no document is ...
The rules works ok if a read a single document using the firebase web client. But when querying and the result is empty,...
Read more >
Query a Firestore collection with a cursor start at field ...
To authenticate to Firestore, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Read more >
Paginating data with query cursors | Firestore
Query cursors define the start and end points for a query, allowing you to: Return a subset of the data. Paginate query results....
Read more >
Cloud Firestore
Start & End Cursors#. To start and/or end a query at a specific point within a collection, you can pass a value to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found