Commit 372310a
fix: PageInfo must define one or more fields
Fixes a regression introduced in `v3.1`. `schemaComposer.createObjectTC` accepts a `typeDef`, which could be a `string` (as in https://github.com/graphql-compose/graphql-compose-elasticsearch/blob/v3.1.1/src/resolvers/searchConnection.js#L141). `cfg` does not have `field` attributes in this case, causing `PageInfo` to be empty.
Closes #601 parent 99e53e2 commit 372310a
1 file changed
+9
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
| |||
0 commit comments