Skip to content

Conversation

@Some1Somewhere
Copy link

What this PR fixes

Solves #51.

Bug – CollectionReference.get() returned the raw generator produced by stream().

In real google-cloud-firestore, get() is eager: it materialises the stream and returns a list[DocumentSnapshot].

Consuming code that expected parity (e.g. len(col.get()) or random-index access) raised TypeError: object of type 'generator' has no len().

Backward Compatibility

No breaking changes. Existing code that already consumed the generator continues to work (list(col.get()) still returns a list). Only incorrect behaviour is corrected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant