Open savita-malaghan opened 3 years ago
Make sure you have "aws-amplify" installed and configured.
Do import { gql, useMutation } from "@apollo/client"
and then establish const [makeToDo] = useMutation(gql(createToDo))
makeToDo()
is the function that executes the mutation so you can execute the following example as the first argument is the input for the mutation makeToDo({ variables: { input: { task: "ToDo" } } })