firebase / firebase/firestore-bundle-builder
Store usable JSON in the bundle
- Dominant language
- TypeScript
- Stars
- 14
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
This outputs a hierarchical mess where all values are wrapped in redundant attribute values, and it's not even properly formed JSON. My usecase requires usable JSON without wasted overhead. My reason for using bundles is efficiency and cost saving.
Looking at the extensions function code, looks like the fix is just to just bundle add `JSON.stringify(snap.data())` instead?
I'm really surprised this is not the standard requirement? Is everybody just wasting all the space and time to find and re-parse to usable json? What am I missing?
Contributor guide
Research direction
Start by reading the extensions function code and inspect how snapshot data is serialized into the bundle. Verify whether the current output is valid, usable JSON and whether the proposed JSON.stringify(snap.data()) approach produces the expected structure without unnecessary overhead.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- firebase, typescript
- Domain
- database
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100