3 ms·
> custom execution module to translate a graphql request to a single sql query If I have a schema like this: users projects (many per user)
by i_s 9y ago
> custom execution module to translate a graphql request to a single sql query
If I have a schema like this:
users
projects (many per user)
blog_posts (many per user)
What SQL do you generate to handle a request for everything in a single query?
- ruslan_talpa 9y agotake a look at PostgREST https://github.com/begriffs/postgrest https://github.com/begriffs/postgrest simplified example query https://pastebin.com/7J2ZswRC https://pastebin.com/7J2ZswRC
- i_s 9y agoAh, nice trick - thanks for the tip.