Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function withUpdateTodo(
operationOptions?: ReactApollo.OperationOption<
TProps,
UpdateTodoMutation,
UpdateTodoMutationVariables,
UpdateTodoProps
>
) {
return ReactApollo.withMutation<
TProps,
UpdateTodoMutation,
UpdateTodoMutationVariables,
UpdateTodoProps
>(UpdateTodoDocument, {
alias: "withUpdateTodo",
...operationOptions
});
}
export const DestroyTodoDocument = gql`
export function withCreateTodo(
operationOptions?: ReactApollo.OperationOption<
TProps,
CreateTodoMutation,
CreateTodoMutationVariables,
CreateTodoProps
>
) {
return ReactApollo.withMutation<
TProps,
CreateTodoMutation,
CreateTodoMutationVariables,
CreateTodoProps
>(CreateTodoDocument, {
alias: "withCreateTodo",
...operationOptions
});
}
export const UpdateTodoDocument = gql`
export function withRegister(
operationOptions:
| ReactApollo.OperationOption>
| undefined,
) {
return ReactApollo.withMutation>(
RegisterDocument,
operationOptions,
);
}
export function withDestroyTodo(
operationOptions?: ReactApollo.OperationOption<
TProps,
DestroyTodoMutation,
DestroyTodoMutationVariables,
DestroyTodoProps
>
) {
return ReactApollo.withMutation<
TProps,
DestroyTodoMutation,
DestroyTodoMutationVariables,
DestroyTodoProps
>(DestroyTodoDocument, {
alias: "withDestroyTodo",
...operationOptions
});
}
export const TodosDocument = gql`