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

Can't create nested subcollection without wildcard #17

Open
pierremrtn opened this issue May 7, 2024 · 0 comments
Open

Can't create nested subcollection without wildcard #17

pierremrtn opened this issue May 7, 2024 · 0 comments

Comments

@pierremrtn
Copy link

pierremrtn commented May 7, 2024

When I try to create a collection with nested collection without wildcard, like so:

@Collection<Task>('users/*/task/dataExtraction')

I get the following error:

[SEVERE] cloud_firestore_odm_generator on lib/database/model.dart:

The annotation @Collection received "users/*/task/dataExtraction" as collection path, but this path points to a document instead of a collection

I'm trying to create multiple collections with common root for groupQuery:
tasks/typeA
tasks/typeB

@pierremrtn pierremrtn changed the title Can't created nested subcollection without wildcard Can't create nested subcollection without wildcard May 7, 2024
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

1 participant