TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Graphql.js now supports query merging

2 pointsby fkaover 6 years ago

1 comment

ilkhan4over 6 years ago
Isn&#x27;t the problem this is trying to solve what GraphQL already solves? Instead of two different queries (one for the master record, one for the details):<p><pre><code> { post(id: $id) { id title text } } { commentsOfPost: comments(postId: $postId) { comment owner { name } } } </code></pre> Shouldn&#x27;t it just be<p><pre><code> { post(id: $id) { id title text, comments { comment owner { name } } } } ?</code></pre>