How to use the react-apollo.withMutation function in react-apollo

To help you get started, we’ve selected a few react-apollo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tiagob / todo-starter / client / src / generated / graphql.tsx View on Github external
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`
github tiagob / todo-starter / client / src / generated / graphql.tsx View on Github external
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`
github penta-jelly / re-radio / client / src / graphql / index.tsx View on Github external
export function withRegister(
  operationOptions:
    | ReactApollo.OperationOption>
    | undefined,
) {
  return ReactApollo.withMutation>(
    RegisterDocument,
    operationOptions,
  );
}
github tiagob / todo-starter / client / src / generated / graphql.tsx View on Github external
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`