RelayTestQuery.graphql.ts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /* tslint:disable */
  2. import { ConcreteRequest } from "relay-runtime";
  3. import { Show_pokemon$ref } from "./Show_pokemon.graphql";
  4. export type RelayTestQueryVariables = {
  5. readonly pokemonID: string;
  6. };
  7. export type RelayTestQueryResponse = {
  8. readonly node: {
  9. readonly id: string;
  10. readonly " $fragmentRefs": Show_pokemon$ref;
  11. } | null;
  12. };
  13. export type RelayTestQuery = {
  14. readonly response: RelayTestQueryResponse;
  15. readonly variables: RelayTestQueryVariables;
  16. };
  17. /*
  18. query RelayTestQuery(
  19. $pokemonID: ID!
  20. ) {
  21. node(id: $pokemonID) {
  22. __typename
  23. id
  24. ...Show_pokemon
  25. }
  26. }
  27. fragment Show_pokemon on Pokemon {
  28. iid
  29. pokedexNumber
  30. nickname
  31. createdAt
  32. updatedAt
  33. }
  34. */
  35. const node: ConcreteRequest = (function(){
  36. var v0 = [
  37. {
  38. "kind": "LocalArgument",
  39. "name": "pokemonID",
  40. "type": "ID!",
  41. "defaultValue": null
  42. }
  43. ],
  44. v1 = [
  45. {
  46. "kind": "Variable",
  47. "name": "id",
  48. "variableName": "pokemonID"
  49. }
  50. ],
  51. v2 = {
  52. "kind": "ScalarField",
  53. "alias": null,
  54. "name": "id",
  55. "args": null,
  56. "storageKey": null
  57. };
  58. return {
  59. "kind": "Request",
  60. "fragment": {
  61. "kind": "Fragment",
  62. "name": "RelayTestQuery",
  63. "type": "Query",
  64. "metadata": null,
  65. "argumentDefinitions": (v0/*: any*/),
  66. "selections": [
  67. {
  68. "kind": "LinkedField",
  69. "alias": null,
  70. "name": "node",
  71. "storageKey": null,
  72. "args": (v1/*: any*/),
  73. "concreteType": null,
  74. "plural": false,
  75. "selections": [
  76. (v2/*: any*/),
  77. {
  78. "kind": "FragmentSpread",
  79. "name": "Show_pokemon",
  80. "args": null
  81. }
  82. ]
  83. }
  84. ]
  85. },
  86. "operation": {
  87. "kind": "Operation",
  88. "name": "RelayTestQuery",
  89. "argumentDefinitions": (v0/*: any*/),
  90. "selections": [
  91. {
  92. "kind": "LinkedField",
  93. "alias": null,
  94. "name": "node",
  95. "storageKey": null,
  96. "args": (v1/*: any*/),
  97. "concreteType": null,
  98. "plural": false,
  99. "selections": [
  100. {
  101. "kind": "ScalarField",
  102. "alias": null,
  103. "name": "__typename",
  104. "args": null,
  105. "storageKey": null
  106. },
  107. (v2/*: any*/),
  108. {
  109. "kind": "InlineFragment",
  110. "type": "Pokemon",
  111. "selections": [
  112. {
  113. "kind": "ScalarField",
  114. "alias": null,
  115. "name": "iid",
  116. "args": null,
  117. "storageKey": null
  118. },
  119. {
  120. "kind": "ScalarField",
  121. "alias": null,
  122. "name": "pokedexNumber",
  123. "args": null,
  124. "storageKey": null
  125. },
  126. {
  127. "kind": "ScalarField",
  128. "alias": null,
  129. "name": "nickname",
  130. "args": null,
  131. "storageKey": null
  132. },
  133. {
  134. "kind": "ScalarField",
  135. "alias": null,
  136. "name": "createdAt",
  137. "args": null,
  138. "storageKey": null
  139. },
  140. {
  141. "kind": "ScalarField",
  142. "alias": null,
  143. "name": "updatedAt",
  144. "args": null,
  145. "storageKey": null
  146. }
  147. ]
  148. }
  149. ]
  150. }
  151. ]
  152. },
  153. "params": {
  154. "operationKind": "query",
  155. "name": "RelayTestQuery",
  156. "id": null,
  157. "text": "query RelayTestQuery(\n $pokemonID: ID!\n) {\n node(id: $pokemonID) {\n __typename\n id\n ...Show_pokemon\n }\n}\n\nfragment Show_pokemon on Pokemon {\n iid\n pokedexNumber\n nickname\n createdAt\n updatedAt\n}\n",
  158. "metadata": {}
  159. }
  160. };
  161. })();
  162. (node as any).hash = '5cc26eba38e52d446431338efeb125fe';
  163. export default node;