firestoreodm-flutter icon indicating copy to clipboard operation
firestoreodm-flutter copied to clipboard

Can't create nested subcollection without wildcard

Open pierremrtn opened this issue 9 months ago • 0 comments

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 avatar May 07 '24 02:05 pierremrtn