質問編集履歴
3
タイトルの修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
検索結果を表示させたい
|
test
CHANGED
File without changes
|
2
使用言語の追記
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
検索結果を表示させたい
|
1
|
+
hsi検索結果を表示させたい
|
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
### <App.js>
|
30
30
|
|
31
|
-
```
|
31
|
+
```JavaScript
|
32
32
|
|
33
33
|
import client from "./client";
|
34
34
|
|
@@ -204,88 +204,88 @@
|
|
204
204
|
|
205
205
|
### <graphql.js>
|
206
206
|
|
207
|
+
```JavaScript
|
208
|
+
|
209
|
+
export const SEARCH_REPOSITORIES = gql`
|
210
|
+
|
211
|
+
query searchRepositories(
|
212
|
+
|
213
|
+
$first: Int
|
214
|
+
|
215
|
+
$after: String
|
216
|
+
|
217
|
+
$last: Int
|
218
|
+
|
219
|
+
$before: String
|
220
|
+
|
221
|
+
$query: String!
|
222
|
+
|
223
|
+
) {
|
224
|
+
|
225
|
+
search(
|
226
|
+
|
227
|
+
first: $first
|
228
|
+
|
229
|
+
after: $after
|
230
|
+
|
231
|
+
last: $last
|
232
|
+
|
233
|
+
before: $before
|
234
|
+
|
235
|
+
query: $query
|
236
|
+
|
237
|
+
type: REPOSITORY
|
238
|
+
|
239
|
+
) {
|
240
|
+
|
241
|
+
repositoryCount
|
242
|
+
|
243
|
+
pageInfo {
|
244
|
+
|
245
|
+
endCursor
|
246
|
+
|
247
|
+
hasNextPage
|
248
|
+
|
249
|
+
hasPreviousPage
|
250
|
+
|
251
|
+
startCursor
|
252
|
+
|
253
|
+
}
|
254
|
+
|
255
|
+
edges {
|
256
|
+
|
257
|
+
cursor
|
258
|
+
|
259
|
+
node {
|
260
|
+
|
261
|
+
... on Repository {
|
262
|
+
|
263
|
+
id
|
264
|
+
|
265
|
+
name
|
266
|
+
|
267
|
+
url
|
268
|
+
|
269
|
+
stargazers {
|
270
|
+
|
271
|
+
totalCount
|
272
|
+
|
273
|
+
}
|
274
|
+
|
275
|
+
viewerHasStarred
|
276
|
+
|
277
|
+
}
|
278
|
+
|
279
|
+
}
|
280
|
+
|
281
|
+
}
|
282
|
+
|
283
|
+
}
|
284
|
+
|
285
|
+
}
|
286
|
+
|
287
|
+
`;
|
288
|
+
|
289
|
+
|
290
|
+
|
207
291
|
```
|
208
|
-
|
209
|
-
export const SEARCH_REPOSITORIES = gql`
|
210
|
-
|
211
|
-
query searchRepositories(
|
212
|
-
|
213
|
-
$first: Int
|
214
|
-
|
215
|
-
$after: String
|
216
|
-
|
217
|
-
$last: Int
|
218
|
-
|
219
|
-
$before: String
|
220
|
-
|
221
|
-
$query: String!
|
222
|
-
|
223
|
-
) {
|
224
|
-
|
225
|
-
search(
|
226
|
-
|
227
|
-
first: $first
|
228
|
-
|
229
|
-
after: $after
|
230
|
-
|
231
|
-
last: $last
|
232
|
-
|
233
|
-
before: $before
|
234
|
-
|
235
|
-
query: $query
|
236
|
-
|
237
|
-
type: REPOSITORY
|
238
|
-
|
239
|
-
) {
|
240
|
-
|
241
|
-
repositoryCount
|
242
|
-
|
243
|
-
pageInfo {
|
244
|
-
|
245
|
-
endCursor
|
246
|
-
|
247
|
-
hasNextPage
|
248
|
-
|
249
|
-
hasPreviousPage
|
250
|
-
|
251
|
-
startCursor
|
252
|
-
|
253
|
-
}
|
254
|
-
|
255
|
-
edges {
|
256
|
-
|
257
|
-
cursor
|
258
|
-
|
259
|
-
node {
|
260
|
-
|
261
|
-
... on Repository {
|
262
|
-
|
263
|
-
id
|
264
|
-
|
265
|
-
name
|
266
|
-
|
267
|
-
url
|
268
|
-
|
269
|
-
stargazers {
|
270
|
-
|
271
|
-
totalCount
|
272
|
-
|
273
|
-
}
|
274
|
-
|
275
|
-
viewerHasStarred
|
276
|
-
|
277
|
-
}
|
278
|
-
|
279
|
-
}
|
280
|
-
|
281
|
-
}
|
282
|
-
|
283
|
-
}
|
284
|
-
|
285
|
-
}
|
286
|
-
|
287
|
-
`;
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
```
|
1
線の挿入
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,10 +8,18 @@
|
|
8
8
|
|
9
9
|
対処法を教えていただけると幸いです。
|
10
10
|
|
11
|
+
|
12
|
+
|
13
|
+
一枚目が正常な表示結果で二枚目が意図していない表示結果です。
|
14
|
+
|
11
15
|
![](e077edbc7333ca9bbefa09f95d490b4d.png)
|
12
16
|
|
17
|
+
---
|
18
|
+
|
13
19
|
![](504e36f1e0c72d0364b20943dd60cc49.png)
|
14
20
|
|
21
|
+
---
|
22
|
+
|
15
23
|
|
16
24
|
|
17
25
|
以下App.jsのファイルとそこで用いるgraphql.jsです。
|