Skip to content

Commit 107ae60

Browse files
committed
Update README.md
1 parent 0107525 commit 107ae60

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ type InputVariables = Variables<IssuesQuery>
150150
151151
## FAQ
152152
153-
### Why query string is copied to TypeScript file as well?
153+
<details>
154+
<summary><strong>Why query string is copied to TypeScript file as well?</strong></summary>
154155
155156
To make it easier to import queries in TypeScript projects. As well to connect
156157
generated output types with query source code.
@@ -173,7 +174,10 @@ function query<T extends Query>(query: T, variables?: Variables<T>) {
173174
const { issues } = await query(IssuesQuery, { login: 'webpod' })
174175
```
175176

176-
### Does Megaera support fragments?
177+
</details>
178+
179+
<details>
180+
<summary><strong>Does Megaera support fragments?</strong></summary>
177181

178182
Yes, Megaera fully supports fragments. Fragments are generated as separate types,
179183
and can be used independently.
@@ -206,6 +210,9 @@ import { Issue, IssuesQuery } from './query.graphql.js'
206210
const firstIssue: Issue = query(IssuesQuery).issues.nodes[0]
207211
```
208212

213+
</details>
214+
215+
209216
## License
210217

211218
[MIT](LICENSE)

0 commit comments

Comments
 (0)