diff --git a/todo/__generated__/queries.json b/todo/__generated__/queries.json index 36a1f805..9c508b28 100644 --- a/todo/__generated__/queries.json +++ b/todo/__generated__/queries.json @@ -1,9 +1,31 @@ { + "1356078f7d1a216c5c408db1846fa14a": "query TodoAppQuery(\n $userId: String\n) {\n user(id: $userId) {\n ...Todo_user\n todos(first: 2147483647) {\n edges {\n node {\n id\n ...Todo_todo\n __typename\n }\n ...MarkAllTodosMutation_todoEdge\n cursor\n }\n ...TodoListFooter_todoConnection\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n }\n}\n\nfragment ChangeTodoStatusMutation_user on User {\n id\n userId\n completedCount\n}\n\nfragment MarkAllTodosMutation_todoEdge on TodoEdge {\n node {\n id\n }\n}\n\nfragment RemoveCompletedTodosMutation_todoConnection on TodoConnection {\n edges {\n node {\n id\n complete\n }\n }\n}\n\nfragment RemoveTodoMutation_user on User {\n id\n userId\n totalCount\n completedCount\n}\n\nfragment TodoListFooter_todoConnection on TodoConnection {\n ...RemoveCompletedTodosMutation_todoConnection\n}\n\nfragment Todo_todo on Todo {\n id\n text\n complete\n}\n\nfragment Todo_user on User {\n ...ChangeTodoStatusMutation_user\n ...RemoveTodoMutation_user\n}\n", + "13f854d537ece1709bd295d06646a671": "query ClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo(\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo\n id\n }\n}\n\nfragment ChangeTodoStatusMutation_todo on Todo {\n id\n}\n\nfragment RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo on Todo {\n id\n ...Todo_todo\n}\n\nfragment RemoveTodoMutation_todo on Todo {\n id\n complete\n}\n\nfragment RenameTodoMutation_todo on Todo {\n id\n text\n}\n\nfragment Todo_todo on Todo {\n id\n complete\n text\n ...ChangeTodoStatusMutation_todo\n ...RenameTodoMutation_todo\n ...RemoveTodoMutation_todo\n}\n", + "17f9b8ac686fd20bf27c46d9885dbdee": "query TodoAppQuery(\n $userId: String\n) {\n user(id: $userId) {\n ...Todo_user\n todos(first: 2147483647) {\n edges {\n node {\n id\n ...Todo_todo\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n }\n}\n\nfragment ChangeTodoStatusMutation_user on User {\n id\n userId\n completedCount\n}\n\nfragment RemoveTodoMutation_user on User {\n id\n userId\n totalCount\n completedCount\n}\n\nfragment Todo_todo on Todo {\n id\n text\n complete\n}\n\nfragment Todo_user on User {\n ...ChangeTodoStatusMutation_user\n ...RemoveTodoMutation_user\n}\n", + "1847151e90164b66470fc1db5ccb0d48": "query ClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo(\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo\n id\n }\n}\n\nfragment RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo on Todo {\n id\n ...Todo_todo\n}\n\nfragment Todo_todo on Todo {\n id\n text\n complete\n}\n", + "18bbc43fce6b54ebfc916bd03d886261": "query ClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo(\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo\n id\n }\n}\n\nfragment ChangeTodoStatusMutation_todo on Todo {\n id\n}\n\nfragment RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo on Todo {\n id\n text\n ...Todo_todo\n}\n\nfragment RemoveTodoMutation_todo on Todo {\n id\n complete\n}\n\nfragment RenameTodoMutation_todo on Todo {\n id\n text\n}\n\nfragment Todo_todo on Todo {\n id\n complete\n text\n ...ChangeTodoStatusMutation_todo\n ...RenameTodoMutation_todo\n ...RemoveTodoMutation_todo\n}\n", + "37fdd74447c5d4c4cd4ea0d7f874b2d9": "query TodoAppQuery(\n $userId: String\n) {\n user(id: $userId) {\n ...TodoList_user\n ...Todo_user\n id\n }\n}\n\nfragment AddTodoMutation_user on User {\n userId\n id\n totalCount\n}\n\nfragment ChangeTodoStatusMutation_todo on Todo {\n id\n}\n\nfragment ChangeTodoStatusMutation_user on User {\n id\n userId\n completedCount\n}\n\nfragment MarkAllTodosMutation_todoEdge on TodoEdge {\n node {\n id\n }\n}\n\nfragment MarkAllTodosMutation_user on User {\n id\n userId\n totalCount\n}\n\nfragment RemoveCompletedTodosMutation_todoConnection on TodoConnection {\n edges {\n node {\n id\n complete\n }\n }\n}\n\nfragment RemoveCompletedTodosMutation_user on User {\n id\n userId\n totalCount\n}\n\nfragment RemoveTodoMutation_todo on Todo {\n id\n complete\n}\n\nfragment RemoveTodoMutation_user on User {\n id\n userId\n totalCount\n completedCount\n}\n\nfragment RenameTodoMutation_todo on Todo {\n id\n text\n}\n\nfragment TodoListFooter_todoConnection on TodoConnection {\n ...RemoveCompletedTodosMutation_todoConnection\n}\n\nfragment TodoListFooter_user on User {\n totalCount\n completedCount\n ...RemoveCompletedTodosMutation_user\n}\n\nfragment TodoList_user on User {\n todos(first: 2147483647) {\n edges {\n node {\n id\n ...Todo_todo\n __typename\n }\n ...MarkAllTodosMutation_todoEdge\n cursor\n }\n ...TodoListFooter_todoConnection\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n totalCount\n completedCount\n ...AddTodoMutation_user\n ...MarkAllTodosMutation_user\n ...Todo_user\n ...TodoListFooter_user\n}\n\nfragment Todo_todo on Todo {\n id\n complete\n text\n ...ChangeTodoStatusMutation_todo\n ...RenameTodoMutation_todo\n ...RemoveTodoMutation_todo\n}\n\nfragment Todo_user on User {\n ...ChangeTodoStatusMutation_user\n ...RemoveTodoMutation_user\n}\n", + "3b40f1f8a69fe9afb04773f26571a005": "query ClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo(\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo\n id\n }\n}\n\nfragment RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo on Todo {\n ...Todo_todo\n id\n}\n\nfragment Todo_todo on Todo {\n id\n text\n}\n", + "4cd5d25b2dcd6c84ff29454763807bb5": "query ClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo(\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo\n id\n }\n}\n\nfragment RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo on Todo {\n text\n id\n}\n", "4d3a6acb198829c5ed5f748574934211": "mutation RemoveCompletedTodosMutation(\n $input: RemoveCompletedTodosInput!\n) {\n removeCompletedTodos(input: $input) {\n deletedTodoIds\n user {\n id\n completedCount\n totalCount\n }\n }\n}\n", + "8414dcd4ff3b9e8a93b8f25346295d80": "query TodoAppQuery(\n $userId: String\n) {\n user(id: $userId) {\n ...Todo_user\n todos(first: 10) {\n edges {\n node {\n id\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n }\n}\n\nfragment ChangeTodoStatusMutation_user on User {\n id\n userId\n completedCount\n}\n\nfragment RemoveTodoMutation_user on User {\n id\n userId\n totalCount\n completedCount\n}\n\nfragment Todo_user on User {\n ...ChangeTodoStatusMutation_user\n ...RemoveTodoMutation_user\n}\n", "8a75762b2e92a08aeb1007fc11f71298": "query TodoAppQuery(\n $userId: String\n) {\n user(id: $userId) {\n ...TodoList_user\n id\n }\n}\n\nfragment AddTodoMutation_user on User {\n userId\n id\n totalCount\n}\n\nfragment ChangeTodoStatusMutation_todo on Todo {\n id\n}\n\nfragment ChangeTodoStatusMutation_user on User {\n id\n userId\n completedCount\n}\n\nfragment MarkAllTodosMutation_todoEdge on TodoEdge {\n node {\n id\n }\n}\n\nfragment MarkAllTodosMutation_user on User {\n id\n userId\n totalCount\n}\n\nfragment RemoveCompletedTodosMutation_todoConnection on TodoConnection {\n edges {\n node {\n id\n complete\n }\n }\n}\n\nfragment RemoveCompletedTodosMutation_user on User {\n id\n userId\n totalCount\n}\n\nfragment RemoveTodoMutation_todo on Todo {\n id\n complete\n}\n\nfragment RemoveTodoMutation_user on User {\n id\n userId\n totalCount\n completedCount\n}\n\nfragment RenameTodoMutation_todo on Todo {\n id\n text\n}\n\nfragment TodoListFooter_todoConnection on TodoConnection {\n ...RemoveCompletedTodosMutation_todoConnection\n}\n\nfragment TodoListFooter_user on User {\n totalCount\n completedCount\n ...RemoveCompletedTodosMutation_user\n}\n\nfragment TodoList_user on User {\n todos(first: 2147483647) {\n edges {\n node {\n id\n ...Todo_todo\n __typename\n }\n ...MarkAllTodosMutation_todoEdge\n cursor\n }\n ...TodoListFooter_todoConnection\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n totalCount\n completedCount\n ...AddTodoMutation_user\n ...MarkAllTodosMutation_user\n ...Todo_user\n ...TodoListFooter_user\n}\n\nfragment Todo_todo on Todo {\n complete\n text\n ...ChangeTodoStatusMutation_todo\n ...RenameTodoMutation_todo\n ...RemoveTodoMutation_todo\n}\n\nfragment Todo_user on User {\n ...ChangeTodoStatusMutation_user\n ...RemoveTodoMutation_user\n}\n", + "8e01acbece517c141ec31208a3f4d3f7": "query ClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo(\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo\n id\n }\n}\n\nfragment ChangeTodoStatusMutation_todo on Todo {\n id\n}\n\nfragment RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo on Todo {\n ...Todo_todo\n id\n}\n\nfragment RemoveTodoMutation_todo on Todo {\n id\n complete\n}\n\nfragment RenameTodoMutation_todo on Todo {\n id\n text\n}\n\nfragment Todo_todo on Todo {\n id\n complete\n text\n ...ChangeTodoStatusMutation_todo\n ...RenameTodoMutation_todo\n ...RemoveTodoMutation_todo\n}\n", + "952d5c3b4695e443c0172360c7b745d9": "query ClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo(\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo\n id\n }\n}\n\nfragment ChangeTodoStatusMutation_todo on Todo {\n id\n}\n\nfragment RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo on Todo {\n ...Todo_todo\n id\n}\n\nfragment RemoveTodoMutation_todo on Todo {\n id\n complete\n}\n\nfragment RenameTodoMutation_todo on Todo {\n id\n text\n}\n\nfragment Todo_todo on Todo {\n complete\n text\n ...ChangeTodoStatusMutation_todo\n ...RenameTodoMutation_todo\n ...RemoveTodoMutation_todo\n}\n", + "aae634516746b1bd0a483aaf9adc235c": "query ClientEdgeQuery_TodoAppQuery_localPlayerQueue__todos(\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__todos\n id\n }\n}\n\nfragment RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__todos on Todo {\n __typename\n id\n}\n", "aba626ea9bdf465954e89e5590eb2c1a": "mutation RemoveTodoMutation(\n $input: RemoveTodoInput!\n) {\n removeTodo(input: $input) {\n deletedTodoId\n user {\n completedCount\n totalCount\n id\n }\n }\n}\n", "ac90c59b3a07237ee6f3cf60f9879f90": "mutation AddTodoMutation(\n $input: AddTodoInput!\n) {\n addTodo(input: $input) {\n todoEdge {\n node {\n complete\n id\n text\n }\n }\n user {\n id\n totalCount\n }\n }\n}\n", + "ad763891a6fbe72084ce182464229b85": "query TodoAppQuery(\n $userId: String\n) {\n user(id: $userId) {\n ...Todo_user\n todos(first: 10) {\n edges {\n node {\n id\n text\n complete\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n }\n}\n\nfragment ChangeTodoStatusMutation_user on User {\n id\n userId\n completedCount\n}\n\nfragment RemoveTodoMutation_user on User {\n id\n userId\n totalCount\n completedCount\n}\n\nfragment Todo_user on User {\n ...ChangeTodoStatusMutation_user\n ...RemoveTodoMutation_user\n}\n", + "c0ca9b2b2cdfb4860dff59bf167d619e": "query TodoAppQuery(\n $userId: String\n) {\n user(id: $userId) {\n ...Todo_user\n id\n }\n}\n\nfragment ChangeTodoStatusMutation_user on User {\n id\n userId\n completedCount\n}\n\nfragment RemoveTodoMutation_user on User {\n id\n userId\n totalCount\n completedCount\n}\n\nfragment Todo_user on User {\n ...ChangeTodoStatusMutation_user\n ...RemoveTodoMutation_user\n}\n", + "c5fba291652e9384fbef3b8d3c5b8b2a": "query TodoAppQuery(\n $userId: String\n) {\n user(id: $userId) {\n ...TodoList_user\n id\n }\n}\n\nfragment AddTodoMutation_user on User {\n userId\n id\n totalCount\n}\n\nfragment ChangeTodoStatusMutation_todo on Todo {\n id\n}\n\nfragment ChangeTodoStatusMutation_user on User {\n id\n userId\n completedCount\n}\n\nfragment MarkAllTodosMutation_todoEdge on TodoEdge {\n node {\n id\n }\n}\n\nfragment MarkAllTodosMutation_user on User {\n id\n userId\n totalCount\n}\n\nfragment RemoveCompletedTodosMutation_todoConnection on TodoConnection {\n edges {\n node {\n id\n complete\n }\n }\n}\n\nfragment RemoveCompletedTodosMutation_user on User {\n id\n userId\n totalCount\n}\n\nfragment RemoveTodoMutation_todo on Todo {\n id\n complete\n}\n\nfragment RemoveTodoMutation_user on User {\n id\n userId\n totalCount\n completedCount\n}\n\nfragment RenameTodoMutation_todo on Todo {\n id\n text\n}\n\nfragment TodoListFooter_todoConnection on TodoConnection {\n ...RemoveCompletedTodosMutation_todoConnection\n}\n\nfragment TodoListFooter_user on User {\n totalCount\n completedCount\n ...RemoveCompletedTodosMutation_user\n}\n\nfragment TodoList_user on User {\n todos(first: 2147483647) {\n edges {\n node {\n id\n ...Todo_todo\n __typename\n }\n ...MarkAllTodosMutation_todoEdge\n cursor\n }\n ...TodoListFooter_todoConnection\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n totalCount\n completedCount\n ...AddTodoMutation_user\n ...MarkAllTodosMutation_user\n ...Todo_user\n ...TodoListFooter_user\n}\n\nfragment Todo_todo on Todo {\n id\n complete\n text\n ...ChangeTodoStatusMutation_todo\n ...RenameTodoMutation_todo\n ...RemoveTodoMutation_todo\n}\n\nfragment Todo_user on User {\n ...ChangeTodoStatusMutation_user\n ...RemoveTodoMutation_user\n}\n", + "c631e64b267d6f9004f1056d0e27f066": "query ClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo(\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo\n id\n }\n}\n\nfragment ChangeTodoStatusMutation_todo on Todo {\n id\n}\n\nfragment RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo on Todo {\n ...Todo_todo\n id\n}\n\nfragment RemoveTodoMutation_todo on Todo {\n id\n complete\n}\n\nfragment RenameTodoMutation_todo on Todo {\n id\n text\n}\n\nfragment Todo_todo on Todo {\n id\n text\n ...ChangeTodoStatusMutation_todo\n ...RenameTodoMutation_todo\n ...RemoveTodoMutation_todo\n}\n", + "c92a01f3d8202ac11f22ffa96af4a5b9": "query TodoAppQuery(\n $userId: String\n) {\n user(id: $userId) {\n ...Todo_user\n todos(first: 2147483647) {\n edges {\n node {\n id\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n }\n}\n\nfragment ChangeTodoStatusMutation_user on User {\n id\n userId\n completedCount\n}\n\nfragment RemoveTodoMutation_user on User {\n id\n userId\n totalCount\n completedCount\n}\n\nfragment Todo_user on User {\n ...ChangeTodoStatusMutation_user\n ...RemoveTodoMutation_user\n}\n", + "ca836fa1a9fe3abbaa6211ffcf6bc915": "query ClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo(\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo\n id\n }\n}\n\nfragment RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo on Todo {\n text\n ...Todo_todo\n id\n}\n\nfragment Todo_todo on Todo {\n id\n text\n complete\n}\n", + "d66bd26f70847334691c77fc8c519c05": "query ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo(\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo\n id\n }\n}\n\nfragment ChangeTodoStatusMutation_todo on Todo {\n id\n}\n\nfragment RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo on Todo {\n ...Todo_todo\n id\n}\n\nfragment RemoveTodoMutation_todo on Todo {\n id\n complete\n}\n\nfragment RenameTodoMutation_todo on Todo {\n id\n text\n}\n\nfragment Todo_todo on Todo {\n complete\n text\n ...ChangeTodoStatusMutation_todo\n ...RenameTodoMutation_todo\n ...RemoveTodoMutation_todo\n}\n", "d7dda774dcfa32fe0d9661e01cac9a4a": "mutation ChangeTodoStatusMutation(\n $input: ChangeTodoStatusInput!\n) {\n changeTodoStatus(input: $input) {\n todo {\n id\n complete\n }\n user {\n id\n completedCount\n }\n }\n}\n", "d970fd7dbf118794415dec7324d463e3": "mutation RenameTodoMutation(\n $input: RenameTodoInput!\n) {\n renameTodo(input: $input) {\n todo {\n id\n text\n }\n }\n}\n", - "db9904c31d91416f21d45fe3d153884c": "mutation MarkAllTodosMutation(\n $input: MarkAllTodosInput!\n) {\n markAllTodos(input: $input) {\n changedTodos {\n id\n complete\n }\n user {\n id\n completedCount\n }\n }\n}\n" + "db9904c31d91416f21d45fe3d153884c": "mutation MarkAllTodosMutation(\n $input: MarkAllTodosInput!\n) {\n markAllTodos(input: $input) {\n changedTodos {\n id\n complete\n }\n user {\n id\n completedCount\n }\n }\n}\n", + "df905331b7506dcd83ddfb5c065b8824": "query ClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo(\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo\n id\n }\n}\n\nfragment RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo on Todo {\n ...Todo_todo\n id\n}\n\nfragment Todo_todo on Todo {\n id\n text\n complete\n}\n", + "e1c365046d8eaa155f29437fb8f250ac": "query ClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo(\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo\n id\n }\n}\n\nfragment ChangeTodoStatusMutation_todo on Todo {\n id\n}\n\nfragment RefetchableClientEdgeQuery_TodoAppQuery_localPlayerQueue__list__todo on Todo {\n text\n ...Todo_todo\n id\n}\n\nfragment RemoveTodoMutation_todo on Todo {\n id\n complete\n}\n\nfragment RenameTodoMutation_todo on Todo {\n id\n text\n}\n\nfragment Todo_todo on Todo {\n id\n complete\n text\n ...ChangeTodoStatusMutation_todo\n ...RenameTodoMutation_todo\n ...RemoveTodoMutation_todo\n}\n", + "fb2fadddd5bcb6e7df46a7054bf8db94": "query TodoAppQuery(\n $userId: String\n) {\n user(id: $userId) {\n ...Todo_user\n todos(first: 10) {\n edges {\n node {\n id\n text\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n }\n}\n\nfragment ChangeTodoStatusMutation_user on User {\n id\n userId\n completedCount\n}\n\nfragment RemoveTodoMutation_user on User {\n id\n userId\n totalCount\n completedCount\n}\n\nfragment Todo_user on User {\n ...ChangeTodoStatusMutation_user\n ...RemoveTodoMutation_user\n}\n" } diff --git a/todo/__generated__/relay/ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo.graphql.js b/todo/__generated__/relay/ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo.graphql.js new file mode 100644 index 00000000..08a6e325 --- /dev/null +++ b/todo/__generated__/relay/ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo.graphql.js @@ -0,0 +1,143 @@ +/** + * @generated SignedSource<<83f1ae992e44c88b1b87ee297d60812d>> + * @relayHash d66bd26f70847334691c77fc8c519c05 + * @flow + * @lightSyntaxTransform + * @nogrep + */ + +/* eslint-disable */ + +'use strict'; + +// @relayRequestID d66bd26f70847334691c77fc8c519c05 + +/*:: +import type { ConcreteRequest, Query } from 'relay-runtime'; +import type { RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$fragmentType } from "./RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo.graphql"; +export type ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$variables = {| + id: string, +|}; +export type ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$data = {| + +node: ?{| + +$fragmentSpreads: RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$fragmentType, + |}, +|}; +export type ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo = {| + response: ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$data, + variables: ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$variables, +|}; +*/ + +var node/*: ConcreteRequest*/ = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "id" + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "id" + } +]; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo", + "selections": [ + { + "alias": null, + "args": (v1/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo" + } + ], + "storageKey": null + } + ], + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo", + "selections": [ + { + "alias": null, + "args": (v1/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + }, + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "complete", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "text", + "storageKey": null + } + ], + "type": "Todo", + "abstractKey": null + } + ], + "storageKey": null + } + ] + }, + "params": { + "id": "d66bd26f70847334691c77fc8c519c05", + "metadata": {}, + "name": "ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo", + "operationKind": "query", + "text": null + } +}; +})(); + +(node/*: any*/).hash = "18632abaf19328551dd7b5862d8ee194"; + +module.exports = ((node/*: any*/)/*: Query< + ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$variables, + ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$data, +>*/); diff --git a/todo/__generated__/relay/ClientTodoList____relay_model_instance.graphql.js b/todo/__generated__/relay/ClientTodoList____relay_model_instance.graphql.js new file mode 100644 index 00000000..a77dfdec --- /dev/null +++ b/todo/__generated__/relay/ClientTodoList____relay_model_instance.graphql.js @@ -0,0 +1,61 @@ +/** + * @generated SignedSource<<6c2b1bcaad859d53c2c19cf3380a82aa>> + * @flow + * @lightSyntaxTransform + * @nogrep + */ + +/* eslint-disable */ + +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +import type { ClientTodoList__id$data } from "./ClientTodoList__id.graphql"; +import type { FragmentType } from "relay-runtime"; +import {ClientTodoList as clientTodoListRelayModelInstanceResolverType} from "../../js/resolvers/ClientTodoList.js"; +// Type assertion validating that `clientTodoListRelayModelInstanceResolverType` resolver is correctly implemented. +// A type error here indicates that the type signature of the resolver module is incorrect. +(clientTodoListRelayModelInstanceResolverType: ( + id: ClientTodoList__id$data['id'], +) => mixed); +declare export opaque type ClientTodoList____relay_model_instance$fragmentType: FragmentType; +export type ClientTodoList____relay_model_instance$data = {| + +__relay_model_instance: $NonMaybeType>, + +$fragmentType: ClientTodoList____relay_model_instance$fragmentType, +|}; +export type ClientTodoList____relay_model_instance$key = { + +$data?: ClientTodoList____relay_model_instance$data, + +$fragmentSpreads: ClientTodoList____relay_model_instance$fragmentType, + ... +}; +*/ + +var node/*: ReaderFragment*/ = { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "ClientTodoList____relay_model_instance", + "selections": [ + { + "alias": null, + "args": null, + "fragment": { + "args": null, + "kind": "FragmentSpread", + "name": "ClientTodoList__id" + }, + "kind": "RelayResolver", + "name": "__relay_model_instance", + "resolverModule": require('relay-runtime/experimental').resolverDataInjector(require('./ClientTodoList__id.graphql'), require('./../../js/resolvers/ClientTodoList').ClientTodoList, 'id', true), + "path": "__relay_model_instance" + } + ], + "type": "ClientTodoList", + "abstractKey": null +}; + +module.exports = ((node/*: any*/)/*: Fragment< + ClientTodoList____relay_model_instance$fragmentType, + ClientTodoList____relay_model_instance$data, +>*/); diff --git a/todo/__generated__/relay/ClientTodoList__id.graphql.js b/todo/__generated__/relay/ClientTodoList__id.graphql.js new file mode 100644 index 00000000..f28c2eb1 --- /dev/null +++ b/todo/__generated__/relay/ClientTodoList__id.graphql.js @@ -0,0 +1,53 @@ +/** + * @generated SignedSource<<5f481bea2956441863ac1414266dd09a>> + * @flow + * @lightSyntaxTransform + * @nogrep + */ + +/* eslint-disable */ + +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +import type { FragmentType } from "relay-runtime"; +declare export opaque type ClientTodoList__id$fragmentType: FragmentType; +export type ClientTodoList__id$data = {| + +id: string, + +$fragmentType: ClientTodoList__id$fragmentType, +|}; +export type ClientTodoList__id$key = { + +$data?: ClientTodoList__id$data, + +$fragmentSpreads: ClientTodoList__id$fragmentType, + ... +}; +*/ + +var node/*: ReaderFragment*/ = { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "ClientTodoList__id", + "selections": [ + { + "kind": "ClientExtension", + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + } + ] + } + ], + "type": "ClientTodoList", + "abstractKey": null +}; + +module.exports = ((node/*: any*/)/*: Fragment< + ClientTodoList__id$fragmentType, + ClientTodoList__id$data, +>*/); diff --git a/todo/__generated__/relay/RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo.graphql.js b/todo/__generated__/relay/RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo.graphql.js new file mode 100644 index 00000000..8b9b71fc --- /dev/null +++ b/todo/__generated__/relay/RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo.graphql.js @@ -0,0 +1,71 @@ +/** + * @generated SignedSource<<728dc0bbb2ff620da223a2331a580746>> + * @flow + * @lightSyntaxTransform + * @nogrep + */ + +/* eslint-disable */ + +'use strict'; + +/*:: +import type { ReaderFragment, RefetchableFragment } from 'relay-runtime'; +import type { Todo_todo$fragmentType } from "./Todo_todo.graphql"; +import type { FragmentType } from "relay-runtime"; +declare export opaque type RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$fragmentType: FragmentType; +import type { ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$variables } from "./ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo.graphql"; +export type RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$data = {| + +id: string, + +$fragmentSpreads: Todo_todo$fragmentType, + +$fragmentType: RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$fragmentType, +|}; +export type RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$key = { + +$data?: RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$data, + +$fragmentSpreads: RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$fragmentType, + ... +}; +*/ + +var node/*: ReaderFragment*/ = { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": { + "refetch": { + "connection": null, + "fragmentPathInResult": [ + "node" + ], + "operation": require('./ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo.graphql'), + "identifierInfo": { + "identifierField": "id", + "identifierQueryVariableName": "id" + } + } + }, + "name": "RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo", + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "Todo_todo" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + } + ], + "type": "Todo", + "abstractKey": null +}; + +(node/*: any*/).hash = "18632abaf19328551dd7b5862d8ee194"; + +module.exports = ((node/*: any*/)/*: RefetchableFragment< + RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$fragmentType, + RefetchableClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$data, + ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo$variables, +>*/); diff --git a/todo/__generated__/relay/TodoAppQuery$parameters.js b/todo/__generated__/relay/TodoAppQuery$parameters.js new file mode 100644 index 00000000..2ac95fb0 --- /dev/null +++ b/todo/__generated__/relay/TodoAppQuery$parameters.js @@ -0,0 +1,43 @@ +/** + * @generated SignedSource<<6f9153145e8a075f20faf8e7bdc4ca70>> + * @relayHash 8414dcd4ff3b9e8a93b8f25346295d80 + * @flow + * @lightSyntaxTransform + * @nogrep + */ + +/* eslint-disable */ + +'use strict'; + +// @relayRequestID 8414dcd4ff3b9e8a93b8f25346295d80 + +/*:: +import type { PreloadableConcreteRequest } from 'relay-runtime'; +import type { TodoAppQuery } from './TodoAppQuery.graphql'; +*/ + +var node/*: PreloadableConcreteRequest*/ = { + "kind": "PreloadableConcreteRequest", + "params": { + "id": "8414dcd4ff3b9e8a93b8f25346295d80", + "metadata": { + "connection": [ + { + "count": null, + "cursor": null, + "direction": "forward", + "path": [ + "user", + "todos" + ] + } + ] + }, + "name": "TodoAppQuery", + "operationKind": "query", + "text": null + } +}; + +module.exports = ((node/*: any*/)/*: PreloadableConcreteRequest*/); diff --git a/todo/__generated__/relay/TodoAppQuery.graphql.js b/todo/__generated__/relay/TodoAppQuery.graphql.js index 3de5d133..1ddddaf8 100644 --- a/todo/__generated__/relay/TodoAppQuery.graphql.js +++ b/todo/__generated__/relay/TodoAppQuery.graphql.js @@ -1,6 +1,6 @@ /** - * @generated SignedSource<<1eb563a36ecae92cf484e8b1db6af4df>> - * @relayHash 8a75762b2e92a08aeb1007fc11f71298 + * @generated SignedSource<<4621279e5edc67eba755b4fbdd501256>> + * @relayHash 8414dcd4ff3b9e8a93b8f25346295d80 * @flow * @lightSyntaxTransform * @nogrep @@ -10,17 +10,58 @@ 'use strict'; -// @relayRequestID 8a75762b2e92a08aeb1007fc11f71298 +// @relayRequestID 8414dcd4ff3b9e8a93b8f25346295d80 /*:: import type { ConcreteRequest, Query } from 'relay-runtime'; -import type { TodoList_user$fragmentType } from "./TodoList_user.graphql"; +import type { DataID } from "relay-runtime"; +import type { Todo_todo$fragmentType } from "./Todo_todo.graphql"; +import type { Todo_user$fragmentType } from "./Todo_user.graphql"; +import type { ClientTodoList____relay_model_instance$data } from "./ClientTodoList____relay_model_instance.graphql"; +import type { TodoListItem____relay_model_instance$data } from "./TodoListItem____relay_model_instance.graphql"; +import {items as clientTodoListItemsResolverType} from "../../js/resolvers/ClientTodoList.js"; +// Type assertion validating that `clientTodoListItemsResolverType` resolver is correctly implemented. +// A type error here indicates that the type signature of the resolver module is incorrect. +(clientTodoListItemsResolverType: ( + __relay_model_instance: ClientTodoList____relay_model_instance$data['__relay_model_instance'], +) => ?$ReadOnlyArray); +import {clientTodoList as queryClientTodoListResolverType} from "../../js/resolvers/Query.js"; +// Type assertion validating that `queryClientTodoListResolverType` resolver is correctly implemented. +// A type error here indicates that the type signature of the resolver module is incorrect. +(queryClientTodoListResolverType: () => ?{| + +id: DataID, +|}); +import {todo as todoListItemTodoResolverType} from "../../js/resolvers/ClientTodoList.js"; +// Type assertion validating that `todoListItemTodoResolverType` resolver is correctly implemented. +// A type error here indicates that the type signature of the resolver module is incorrect. +(todoListItemTodoResolverType: ( + __relay_model_instance: TodoListItem____relay_model_instance$data['__relay_model_instance'], +) => ?{| + +id: DataID, +|}); export type TodoAppQuery$variables = {| userId?: ?string, |}; export type TodoAppQuery$data = {| + +clientTodoList: ?{| + +items: ?$ReadOnlyArray, + |}, +user: {| - +$fragmentSpreads: TodoList_user$fragmentType, + +todos: ?{| + +__id: string, + +edges: ?$ReadOnlyArray, + |}, + +$fragmentSpreads: Todo_user$fragmentType, |}, |}; export type TodoAppQuery = {| @@ -44,25 +85,106 @@ v1 = [ "variableName": "userId" } ], -v2 = [ - { - "kind": "Literal", - "name": "first", - "value": 2147483647 - } -], -v3 = { +v2 = { "alias": null, "args": null, "kind": "ScalarField", "name": "id", "storageKey": null -}; +}, +v3 = [ + { + "alias": null, + "args": null, + "concreteType": "TodoEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Todo", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + } + ], + "storageKey": null + }, + { + "kind": "ClientExtension", + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__id", + "storageKey": null + } + ] + } +], +v4 = [ + { + "kind": "Literal", + "name": "first", + "value": 10 + } +], +v5 = [ + (v2/*: any*/) +]; return { "fragment": { "argumentDefinitions": (v0/*: any*/), "kind": "Fragment", - "metadata": null, + "metadata": { + "hasClientEdges": true + }, "name": "TodoAppQuery", "selections": [ { @@ -78,13 +200,137 @@ return { { "args": null, "kind": "FragmentSpread", - "name": "TodoList_user" + "name": "Todo_user" + }, + { + "alias": "todos", + "args": null, + "concreteType": "TodoConnection", + "kind": "LinkedField", + "name": "__TodoList_todos_connection", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null } ], "storageKey": null }, - "action": "THROW", - "path": "user" + "action": "THROW" + }, + { + "kind": "ClientEdgeToClientObject", + "concreteType": "ClientTodoList", + "modelResolvers": { + "ClientTodoList": { + "alias": null, + "args": null, + "fragment": { + "args": null, + "kind": "FragmentSpread", + "name": "ClientTodoList__id" + }, + "kind": "RelayResolver", + "name": "clientTodoList", + "resolverModule": require('relay-runtime/experimental').resolverDataInjector(require('./ClientTodoList__id.graphql'), require('./../../js/resolvers/ClientTodoList').ClientTodoList, 'id', true), + "path": "clientTodoList.__relay_model_instance" + } + }, + "backingField": { + "alias": null, + "args": null, + "fragment": null, + "kind": "RelayResolver", + "name": "clientTodoList", + "resolverModule": require('./../../js/resolvers/Query').clientTodoList, + "path": "clientTodoList" + }, + "linkedField": { + "alias": null, + "args": null, + "concreteType": "ClientTodoList", + "kind": "LinkedField", + "name": "clientTodoList", + "plural": false, + "selections": [ + { + "kind": "ClientEdgeToClientObject", + "concreteType": "TodoListItem", + "modelResolvers": { + "TodoListItem": { + "alias": null, + "args": null, + "fragment": { + "args": null, + "kind": "FragmentSpread", + "name": "TodoListItem__id" + }, + "kind": "RelayResolver", + "name": "items", + "resolverModule": require('relay-runtime/experimental').resolverDataInjector(require('./TodoListItem__id.graphql'), require('./../../js/resolvers/ClientTodoList').TodoListItem, 'id', true), + "path": "clientTodoList.items.__relay_model_instance" + } + }, + "backingField": { + "alias": null, + "args": null, + "fragment": { + "args": null, + "kind": "FragmentSpread", + "name": "ClientTodoList____relay_model_instance" + }, + "kind": "RelayResolver", + "name": "items", + "resolverModule": require('relay-runtime/experimental').resolverDataInjector(require('./ClientTodoList____relay_model_instance.graphql'), require('./../../js/resolvers/ClientTodoList').items, '__relay_model_instance', true), + "path": "clientTodoList.items" + }, + "linkedField": { + "alias": null, + "args": null, + "concreteType": "TodoListItem", + "kind": "LinkedField", + "name": "items", + "plural": true, + "selections": [ + { + "kind": "ClientEdgeToServerObject", + "operation": require('./ClientEdgeQuery_TodoAppQuery_clientTodoList__items__todo.graphql'), + "backingField": { + "alias": null, + "args": null, + "fragment": { + "args": null, + "kind": "FragmentSpread", + "name": "TodoListItem____relay_model_instance" + }, + "kind": "RelayResolver", + "name": "todo", + "resolverModule": require('relay-runtime/experimental').resolverDataInjector(require('./TodoListItem____relay_model_instance.graphql'), require('./../../js/resolvers/ClientTodoList').todo, '__relay_model_instance', true), + "path": "clientTodoList.items.todo" + }, + "linkedField": { + "alias": null, + "args": null, + "concreteType": "Todo", + "kind": "LinkedField", + "name": "todo", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "Todo_todo" + } + ], + "storageKey": null + } + } + ], + "storageKey": null + } + } + ], + "storageKey": null + } } ], "type": "Query", @@ -104,119 +350,12 @@ return { "name": "user", "plural": false, "selections": [ - { - "alias": null, - "args": (v2/*: any*/), - "concreteType": "TodoConnection", - "kind": "LinkedField", - "name": "todos", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "TodoEdge", - "kind": "LinkedField", - "name": "edges", - "plural": true, - "selections": [ - { - "alias": null, - "args": null, - "concreteType": "Todo", - "kind": "LinkedField", - "name": "node", - "plural": false, - "selections": [ - (v3/*: any*/), - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "complete", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "text", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__typename", - "storageKey": null - } - ], - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "cursor", - "storageKey": null - } - ], - "storageKey": null - }, - { - "kind": "ClientExtension", - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "__id", - "storageKey": null - } - ] - }, - { - "alias": null, - "args": null, - "concreteType": "PageInfo", - "kind": "LinkedField", - "name": "pageInfo", - "plural": false, - "selections": [ - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "endCursor", - "storageKey": null - }, - { - "alias": null, - "args": null, - "kind": "ScalarField", - "name": "hasNextPage", - "storageKey": null - } - ], - "storageKey": null - } - ], - "storageKey": "todos(first:2147483647)" - }, - { - "alias": null, - "args": (v2/*: any*/), - "filters": null, - "handle": "connection", - "key": "TodoList_todos", - "kind": "LinkedHandle", - "name": "todos" - }, + (v2/*: any*/), { "alias": null, "args": null, "kind": "ScalarField", - "name": "totalCount", + "name": "userId", "storageKey": null }, { @@ -230,18 +369,140 @@ return { "alias": null, "args": null, "kind": "ScalarField", - "name": "userId", + "name": "totalCount", "storageKey": null }, - (v3/*: any*/) + { + "alias": null, + "args": (v4/*: any*/), + "concreteType": "TodoConnection", + "kind": "LinkedField", + "name": "todos", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": "todos(first:10)" + }, + { + "alias": null, + "args": (v4/*: any*/), + "filters": null, + "handle": "connection", + "key": "TodoList_todos", + "kind": "LinkedHandle", + "name": "todos" + } ], "storageKey": null + }, + { + "kind": "ClientEdgeToClientObject", + "backingField": { + "name": "clientTodoList", + "args": null, + "fragment": null, + "kind": "RelayResolver", + "storageKey": null, + "isOutputType": false + }, + "linkedField": { + "alias": null, + "args": null, + "concreteType": "ClientTodoList", + "kind": "LinkedField", + "name": "clientTodoList", + "plural": false, + "selections": [ + { + "kind": "ClientEdgeToClientObject", + "backingField": { + "name": "items", + "args": null, + "fragment": { + "kind": "InlineFragment", + "selections": [ + { + "name": "__relay_model_instance", + "args": null, + "fragment": { + "kind": "InlineFragment", + "selections": (v5/*: any*/), + "type": "ClientTodoList", + "abstractKey": null + }, + "kind": "RelayResolver", + "storageKey": null, + "isOutputType": false + } + ], + "type": "ClientTodoList", + "abstractKey": null + }, + "kind": "RelayResolver", + "storageKey": null, + "isOutputType": false + }, + "linkedField": { + "alias": null, + "args": null, + "concreteType": "TodoListItem", + "kind": "LinkedField", + "name": "items", + "plural": true, + "selections": [ + { + "name": "todo", + "args": null, + "fragment": { + "kind": "InlineFragment", + "selections": [ + { + "name": "__relay_model_instance", + "args": null, + "fragment": { + "kind": "InlineFragment", + "selections": (v5/*: any*/), + "type": "TodoListItem", + "abstractKey": null + }, + "kind": "RelayResolver", + "storageKey": null, + "isOutputType": false + } + ], + "type": "TodoListItem", + "abstractKey": null + }, + "kind": "RelayResolver", + "storageKey": null, + "isOutputType": false + }, + (v2/*: any*/) + ], + "storageKey": null + } + }, + (v2/*: any*/) + ], + "storageKey": null + } } ] }, "params": { - "id": "8a75762b2e92a08aeb1007fc11f71298", - "metadata": {}, + "id": "8414dcd4ff3b9e8a93b8f25346295d80", + "metadata": { + "connection": [ + { + "count": null, + "cursor": null, + "direction": "forward", + "path": [ + "user", + "todos" + ] + } + ] + }, "name": "TodoAppQuery", "operationKind": "query", "text": null @@ -249,7 +510,7 @@ return { }; })(); -(node/*: any*/).hash = "021cf002a0c5c39c772369311b469cec"; +(node/*: any*/).hash = "18632abaf19328551dd7b5862d8ee194"; require('relay-runtime').PreloadableQueryRegistry.set((node.params/*: any*/).id, node); diff --git a/todo/__generated__/relay/TodoListItem____relay_model_instance.graphql.js b/todo/__generated__/relay/TodoListItem____relay_model_instance.graphql.js new file mode 100644 index 00000000..ce9a5f79 --- /dev/null +++ b/todo/__generated__/relay/TodoListItem____relay_model_instance.graphql.js @@ -0,0 +1,61 @@ +/** + * @generated SignedSource<> + * @flow + * @lightSyntaxTransform + * @nogrep + */ + +/* eslint-disable */ + +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +import type { TodoListItem__id$data } from "./TodoListItem__id.graphql"; +import type { FragmentType } from "relay-runtime"; +import {TodoListItem as todoListItemRelayModelInstanceResolverType} from "../../js/resolvers/ClientTodoList.js"; +// Type assertion validating that `todoListItemRelayModelInstanceResolverType` resolver is correctly implemented. +// A type error here indicates that the type signature of the resolver module is incorrect. +(todoListItemRelayModelInstanceResolverType: ( + id: TodoListItem__id$data['id'], +) => mixed); +declare export opaque type TodoListItem____relay_model_instance$fragmentType: FragmentType; +export type TodoListItem____relay_model_instance$data = {| + +__relay_model_instance: $NonMaybeType>, + +$fragmentType: TodoListItem____relay_model_instance$fragmentType, +|}; +export type TodoListItem____relay_model_instance$key = { + +$data?: TodoListItem____relay_model_instance$data, + +$fragmentSpreads: TodoListItem____relay_model_instance$fragmentType, + ... +}; +*/ + +var node/*: ReaderFragment*/ = { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "TodoListItem____relay_model_instance", + "selections": [ + { + "alias": null, + "args": null, + "fragment": { + "args": null, + "kind": "FragmentSpread", + "name": "TodoListItem__id" + }, + "kind": "RelayResolver", + "name": "__relay_model_instance", + "resolverModule": require('relay-runtime/experimental').resolverDataInjector(require('./TodoListItem__id.graphql'), require('./../../js/resolvers/ClientTodoList').TodoListItem, 'id', true), + "path": "__relay_model_instance" + } + ], + "type": "TodoListItem", + "abstractKey": null +}; + +module.exports = ((node/*: any*/)/*: Fragment< + TodoListItem____relay_model_instance$fragmentType, + TodoListItem____relay_model_instance$data, +>*/); diff --git a/todo/__generated__/relay/TodoListItem__id.graphql.js b/todo/__generated__/relay/TodoListItem__id.graphql.js new file mode 100644 index 00000000..77872116 --- /dev/null +++ b/todo/__generated__/relay/TodoListItem__id.graphql.js @@ -0,0 +1,53 @@ +/** + * @generated SignedSource<<84460ceba65a3b608c3be46a40e6011c>> + * @flow + * @lightSyntaxTransform + * @nogrep + */ + +/* eslint-disable */ + +'use strict'; + +/*:: +import type { Fragment, ReaderFragment } from 'relay-runtime'; +import type { FragmentType } from "relay-runtime"; +declare export opaque type TodoListItem__id$fragmentType: FragmentType; +export type TodoListItem__id$data = {| + +id: string, + +$fragmentType: TodoListItem__id$fragmentType, +|}; +export type TodoListItem__id$key = { + +$data?: TodoListItem__id$data, + +$fragmentSpreads: TodoListItem__id$fragmentType, + ... +}; +*/ + +var node/*: ReaderFragment*/ = { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "TodoListItem__id", + "selections": [ + { + "kind": "ClientExtension", + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + } + ] + } + ], + "type": "TodoListItem", + "abstractKey": null +}; + +module.exports = ((node/*: any*/)/*: Fragment< + TodoListItem__id$fragmentType, + TodoListItem__id$data, +>*/); diff --git a/todo/js/components/TodoApp.js b/todo/js/components/TodoApp.js index 10f14573..d3e4a1ea 100644 --- a/todo/js/components/TodoApp.js +++ b/todo/js/components/TodoApp.js @@ -6,20 +6,41 @@ import type { EntryPointComponent, } from 'react-relay'; -import TodoList from './TodoList'; - import * as React from 'react'; import {graphql, usePreloadedQuery} from 'react-relay'; +import Todo from './Todo'; type PreloadedQueries = {|todoAppQueryRef: PreloadedQuery|}; type Props = EntryPointProps; export default (function TodoApp({queries}: Props): React.Node { - const {user} = usePreloadedQuery( + const {user, clientTodoList} = usePreloadedQuery( graphql` query TodoAppQuery($userId: String) @preloadable { user(id: $userId) @required(action: THROW) { - ...TodoList_user + ...Todo_user + # This adds the todo edges to the store and causes the waterfall edge query below to not be made as it seems to assume that the data is in the store + + # If this is commented out the Edge query below will be requested + todos(first: 10) @connection(key: "TodoList_todos") { + __id + edges { + node { + id + } + } + } + } + clientTodoList { + items { + todo @waterfall { + # If any data not in the store is requested within the waterfall directive. the edge query is made, however data from the fragment is not requested + + # if 'text' is uncommented the edge query is made + # text + ...Todo_todo + } + } } } `, @@ -29,7 +50,9 @@ export default (function TodoApp({queries}: Props): React.Node { return (
- + {clientTodoList.items.map(({todo}, index) => ( + + ))}