Join Discord
Powered by
Hey all, curious how other people handle the snake...
# javascript
s
sixfour
06/07/2022, 2:53 PM
Hey all, curious how other people handle the snake_case to camelCase transformations when reading from and writing to Supabase?
s
silentworks
06/08/2022, 10:18 AM
I create mapper functions to take a object and transform it.
https://github.com/silentworks/waiting-list/blob/main/src/lib/data/mappers/users.js#L3-L10
s
sixfour
06/08/2022, 2:45 PM
Thanks for sharing
sixfour
06/08/2022, 2:46 PM
I'm looking for something more generic. One pattern I found is:
https://github.com/supabase/supabase/discussions/7136
Previous
Next