firebase-to-supabase icon indicating copy to clipboard operation
firebase-to-supabase copied to clipboard

Inconsistent naming conventions between TS and JS files for Firestore custom processing hooks

Open jcquinlan opened this issue 3 years ago • 2 comments

The README for the hooks feature of the firestore migration code states that hooks can be created in a js file matching the name of the collection which is being migrated. This is only true though as long as one is running the TS versions of the scripts. The JS version requires the hook file be called ${collectionName}_processDocument.js instead, that last part (_processDocument) being the missing key.

Since I'm not sure which version of the naming y'all would prefer I figured an issue would be best, rather than a PR. Happy to submit the fix if you let me know which naming convention you'd like to move forward with!

jcquinlan avatar May 23 '22 00:05 jcquinlan

Just wanted yo higlight that this @jcquinlan comment issue helped me and a lot, since this is here since 2022 i plan to open a PR for the documentation

JayMds avatar Mar 22 '24 10:03 JayMds