import { ConcreteRequest } from "relay-runtime" ; export type AddTodoInput = { text : string ; clientMutationId ? : string | null ; } ; export type AddTodoMutationVariables = { input : AddTodoInput ; connections : Array < string > ; append : boolean ; } ; export type AddTodoMutationResponse = { readonly addTodo : { readonly todoEdge ? : { readonly __typename : string ; readonly cursor : string ; readonly node : { readonly complete : boolean | null ; readonly id : string ; readonly text : string | null ; } | null ; } | null ; readonly viewer : { readonly id : string ; readonly totalCount : number | null ; } | null ; } | null ; } ; export type AddTodoMutation = { readonly response : AddTodoMutationResponse ; readonly variables : AddTodoMutationVariables ; } ; const node = ( function ( ) { var v0 = { "defaultValue" : true , "kind" : "LocalArgument" , "name" : "append" } , v1 = { "defaultValue" : null , "kind" : "LocalArgument" , "name" : "connections" } , v2 = { "defaultValue" : null , "kind" : "LocalArgument" , "name" : "input" } , v3 = [ { "kind" : "Variable" , "name" : "input" , "variableName" : "input" } ] , v4 = { "alias" : null , "args" : null , "kind" : "ScalarField" , "name" : "id" , "storageKey" : null } , v5 = { "alias" : null , "args" : null , "concreteType" : "User" , "kind" : "LinkedField" , "name" : "viewer" , "plural" : false , "selections" : [ ( v4 ) , { "alias" : null , "args" : null , "kind" : "ScalarField" , "name" : "totalCount" , "storageKey" : null } ] , "storageKey" : null } , v6 = { "alias" : null , "args" : null , "concreteType" : "TodoEdge" , "kind" : "LinkedField" , "name" : "todoEdge" , "plural" : false , "selections" : [ { "alias" : null , "args" : null , "kind" : "ScalarField" , "name" : "__typename" , "storageKey" : null } , { "alias" : null , "args" : null , "kind" : "ScalarField" , "name" : "cursor" , "storageKey" : null } , { "alias" : null , "args" : null , "concreteType" : "Todo" , "kind" : "LinkedField" , "name" : "node" , "plural" : false , "selections" : [ { "alias" : null , "args" : null , "kind" : "ScalarField" , "name" : "complete" , "storageKey" : null } , ( v4 ) , { "alias" : null , "args" : null , "kind" : "ScalarField" , "name" : "text" , "storageKey" : null } ] , "storageKey" : null } ] , "storageKey" : null } , v7 = [ ( v6 ) ] , v8 = [ { "kind" : "Variable" , "name" : "connections" , "variableName" : "connections" } ] ; return { "fragment" : { "argumentDefinitions" : [ ( v0 ) , ( v1 ) , ( v2 ) ] , "kind" : "Fragment" , "metadata" : null , "name" : "AddTodoMutation" , "selections" : [ { "alias" : null , "args" : ( v3 ) , "concreteType" : "AddTodoPayload" , "kind" : "LinkedField" , "name" : "addTodo" , "plural" : false , "selections" : [ ( v5 ) , { "condition" : "append" , "kind" : "Condition" , "passingValue" : true , "selections" : ( v7 ) } , { "condition" : "append" , "kind" : "Condition" , "passingValue" : false , "selections" : ( v7 ) } ] , "storageKey" : null } ] , "type" : "Mutation" , "abstractKey" : null } , "kind" : "Request" , "operation" : { "argumentDefinitions" : [ ( v2 ) , ( v1 ) , ( v0 ) ] , "kind" : "Operation" , "name" : "AddTodoMutation" , "selections" : [ { "alias" : null , "args" : ( v3 ) , "concreteType" : "AddTodoPayload" , "kind" : "LinkedField" , "name" : "addTodo" , "plural" : false , "selections" : [ ( v5 ) , { "condition" : "append" , "kind" : "Condition" , "passingValue" : true , "selections" : [ ( v6 ) , { "alias" : null , "args" : null , "filters" : null , "handle" : "appendEdge" , "key" : "" , "kind" : "LinkedHandle" , "name" : "todoEdge" , "handleArgs" : ( v8 ) } ] } , { "condition" : "append" , "kind" : "Condition" , "passingValue" : false , "selections" : [ ( v6 ) , { "alias" : null , "args" : null , "filters" : null , "handle" : "prependEdge" , "key" : "" , "kind" : "LinkedHandle" , "name" : "todoEdge" , "handleArgs" : ( v8 ) } ] } ] , "storageKey" : null } ] } , "params" : { "cacheID" : "45b1c0dd3f77cf2030614e989ba1a0ae" , "id" : null , "metadata" : { } , "name" : "AddTodoMutation" , "operationKind" : "mutation" , "text" : "mutation AddTodoMutation(\n  $input: AddTodoInput!\n  $append: Boolean! = true\n) {\n  addTodo(input: $input) {\n    todoEdge @include(if: $append) {\n      __typename\n      cursor\n      node {\n        complete\n        id\n        text\n      }\n    }\n    todoEdge @skip(if: $append) {\n      __typename\n      cursor\n      node {\n        complete\n        id\n        text\n      }\n    }\n    viewer {\n      id\n      totalCount\n    }\n  }\n}\n" } } ; } ) ( ) ; ( node as any ) . hash = '22b4d5cbe974f454b465ed39d335191e' ; export default node ;