Powered by
One challenge is that querying a view returns a fl...
# ideas-and-suggestions
f
fergus
07/28/2021, 11:37 PM
One challenge is that querying a view returns a flat object. So I found this works well: name columns like this in the view: "parent.child" then use:
Copy code
import { unflatten } from "flat"; import { groupBy, merge } from "lodash";
to build the JS object I need in the client
Previous
Next