File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,8 @@ type InputVariables = Variables<IssuesQuery>
150
150
151
151
## FAQ
152
152
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>
154
155
155
156
To make it easier to import queries in TypeScript projects. As well to connect
156
157
generated output types with query source code.
@@ -173,7 +174,10 @@ function query<T extends Query>(query: T, variables?: Variables<T>) {
173
174
const { issues } = await query (IssuesQuery , { login: ' webpod' })
174
175
```
175
176
176
- ### Does Megaera support fragments?
177
+ </details >
178
+
179
+ <details >
180
+ <summary ><strong >Does Megaera support fragments?</strong ></summary >
177
181
178
182
Yes, Megaera fully supports fragments. Fragments are generated as separate types,
179
183
and can be used independently.
@@ -206,6 +210,9 @@ import { Issue, IssuesQuery } from './query.graphql.js'
206
210
const firstIssue: Issue = query (IssuesQuery ).issues .nodes [0 ]
207
211
```
208
212
213
+ </details >
214
+
215
+
209
216
## License
210
217
211
218
[ MIT] ( LICENSE )
You can’t perform that action at this time.
0 commit comments