firebase-to-supabase
firebase-to-supabase copied to clipboard
How to get firestore subcollections for migration?
I couldn't find in the Supabase Migrate Documentation how to pull subcollections inside a collection in Firestore.
For example, under a workspace collection, there is a sub-collection of users in that workspace. Supabase codes only get the /workspaces collection, not the users collection.
Eg : /workspaces/{workspaceId}/users
Can you help with an example? Thank you
The only way I found is to read the workspace.json, take the id and iterate through them with /workspace/
you have to create the /workspace/
Yes, I'm create a folder's per collection Ejem: Collection name: setupGames/games/stage File System: setupGames/games/stage.json