How to accomplish the following JSON format on retrievals
How can I format my query so that drizzle returns a property like so:
6 Replies
My postgres db looks like this:
currently my tester function looks like this:
Because a book can have multiple genres, I wanted them to be shown as an array like in the JSON format above, atm drizzle obtains the genres as separate entries
For example:
rather than what I want which looks like this:
Not sure if its possible to back populate the books schema in this case?
Using book_genres as a pivot to get the ids and use genres to get the genre names?
dude are you stupid
lol?
please enlighten me
@helencik ?
idk figure out
you're pretty stupid though this is not a drizzle thging
HAHAHAHAHA
nah but you're not real
thank you for the laugh though