Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to change default JSON from object to array #293

Closed
a-Leong opened this issue Jan 13, 2021 · 1 comment
Closed

Ability to change default JSON from object to array #293

a-Leong opened this issue Jan 13, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@a-Leong
Copy link

a-Leong commented Jan 13, 2021

Is your feature request related to a problem? Please describe.
When adding a JSON type column to a table, the default entry in new rows is an empty object. There is no way to configure this default entry to be an empty array. My current workaround strategy is to delete and re-add the property in Firestore with an empty array as its value. The empty array value is imported and can be worked with in Firetable as expected.

Describe the solution you'd like
When creating a JSON type column, an option to use either an object or an array as the default root data structure. Alternatively, split the JSON column type into two distinct column types: JSON Object and JSON Array.

Describe alternatives you've considered
I've considered restructuring my data to avoid any arrays containing complex data types.

@shamsmosowi shamsmosowi self-assigned this Jan 14, 2021
@shamsmosowi shamsmosowi added the enhancement New feature or request label Jan 14, 2021
@shamsmosowi
Copy link
Member

good idea @a-Leong , I'll add it in #292

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants