FirebaseExtended / firestoreodm-flutter

BSD 3-Clause "New" or "Revised" License
35 stars 11 forks source link

Can't create nested subcollection without wildcard #17

Open pierremrtn opened 5 months ago

pierremrtn commented 5 months ago

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