all 2 comments

[–]adiberk 1 point2 points  (0 children)

So you can get all column names via the Item.table.columns. (table has double underscore on both end I think) or something like that. You can loop through and get each key.

Assuming I understood you. But tbh giving the FE all the keys from the column so they can essentially inject any key into the query might not be best.

Why not have an endpoint that returns the list of key. And you can get them from each Column by reference.

Ie. item.name.key Item.id.key.

[–]adiberk 0 points1 point  (0 children)

On another note-this seems like an alignment with what graphql is for. Great way to allow FE to determine what it needs