relayTestQuery.graphql.ts 3.8 KB

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