diff --git a/README.md b/README.md index 6c6b6cf..c524424 100644 --- a/README.md +++ b/README.md @@ -150,7 +150,8 @@ type InputVariables = Variables ## FAQ -### Why query string is copied to TypeScript file as well? +
+Why query string is copied to TypeScript file as well? To make it easier to import queries in TypeScript projects. As well to connect generated output types with query source code. @@ -173,7 +174,10 @@ function query(query: T, variables?: Variables) { const { issues } = await query(IssuesQuery, { login: 'webpod' }) ``` -### Does Megaera support fragments? +
+ +
+Does Megaera support fragments? Yes, Megaera fully supports fragments. Fragments are generated as separate types, and can be used independently. @@ -206,6 +210,9 @@ import { Issue, IssuesQuery } from './query.graphql.js' const firstIssue: Issue = query(IssuesQuery).issues.nodes[0] ``` +
+ + ## License [MIT](LICENSE)