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

Geoquery on Non Geo Collection which has a Geo Subcollection - Querying on Collection Group #187

Closed
maheshwara-bwd opened this issue Jul 20, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@maheshwara-bwd
Copy link

maheshwara-bwd commented Jul 20, 2020

Hi ,

I have a subcollection created with geofirestore inside a normal firestore collection.
Eg:
User(Collection) -> document -> Address(Geo Subcollection)

I want to use near query on User Collection to find out all the documents which is near to the given input address

Is it possible to do this ?

Pleas help me on this

Thanks in advance

@maheshwara-bwd maheshwara-bwd changed the title Geoquery on Subcollection Geoquery on Non Geo Collection which has a Geo Subcollection Jul 20, 2020
@MichaelSolati
Copy link
Owner

Just to ensure I'm understanding you correctly. Do you intend to search through all the the sub collections from all users, ie a collection group query?

@maheshwara-bwd
Copy link
Author

Yes exactly,

I have to search through all the user's addresses to find out the address within a range.

Here User is a collection and Addresses are Geo subcollection

How could i achieve this?

@MichaelSolati
Copy link
Owner

I haven't introduced collectionGroup but can look to add that over the course of the next week or so. Unfortunately you'll need to bear with me!

@MichaelSolati MichaelSolati self-assigned this Jul 20, 2020
@MichaelSolati MichaelSolati added the enhancement New feature or request label Jul 20, 2020
@maheshwara-bwd maheshwara-bwd changed the title Geoquery on Non Geo Collection which has a Geo Subcollection Geoquery on Non Geo Collection which has a Geo Subcollection - Querying on Collection Group Jul 20, 2020
@maheshwara-bwd
Copy link
Author

maheshwara-bwd commented Jul 20, 2020

Thanks for your quick reply and sorting it out,
Guess i need to find an work around.

I haven't introduced collectionGroup but can look to add that over the course of the next week or so. Unfortunately you'll need to bear with me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants