Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after use Query in CollectionReference #172

Open
kkorgol opened this issue Jan 25, 2022 · 2 comments
Open

Error after use Query in CollectionReference #172

kkorgol opened this issue Jan 25, 2022 · 2 comments

Comments

@kkorgol
Copy link

kkorgol commented Jan 25, 2022

There is no possibility to use additional filters like e.g. .limit or .where on CollectionReference.
After set such filters following error is thrown:

Unhandled` Exception: type '_JsonQuery' is not a subtype of type 'CollectionReference<Object>'`

According to doc:

You can pass a Query instead of a CollectionReference into the collection(), then all geoqueries will be scoped with the constraints of that query.

Note: collectionReference can be of type CollectionReference or Query

@GaneshvrBhat
Copy link

I have also run into same problem. The immediate workaround is to downgrade cloud_firestore to 2.5.4 and geoflutterfire 3.0.1

@bilalsammour
Copy link

I have the same issue, I tried to downgrade but nothing worked.

@kkorgol kkorgol changed the title Error after use Query in collectionRef Error after use Query in CollectionReference Jan 27, 2022
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

No branches or pull requests

3 participants