by zawerf · 8y ago · 0 comments
A schema like:
create table post (
id serial primary key,
author_id int non null references user(id),
headline text,
body text,
...
);
Can query relations like so: allPosts {
edges {
node {
headline
body
author: userByAuthorId {
name
}
}
}
}
[1] https://github.com/graphile/postgraphile/tree/postgraphile#a...Something like using JSONB datatype in a entity key value store table. Mapping materialized views using pgsql json functions. To flatten out the data into sql tables for normal consumption?