article.id | article.title | comment.id | comment.content |
1 | Some title | 1 | some comment |
1 | Some title | 2 | some comment |
1 | Some title | 3 | some comment |
... is something like this?
article.id | article.title | comments::json |
1 | Some title | [{id: 1, content: "some comment}, ...]
If so, today I learned that Postgres has ORM-like capabilities.
So what
jsonb_agg
does to e.g. this set of data:... is something like this?
If so, today I learned that Postgres has ORM-like capabilities.
Exactly! I should have added some data examples