비공개/강의 간단 정리(추후 복습하면서 수정)
2023. 5. 5.
[Section04-04] graphql-mutation-input
그래프큐엘 입력창 연동 실습 입력창에 입력을 하면 그걸 최종 mutation 에 보내는 것 export default function GraphqlMutationPage() { const [writer, setWriter] = useState(""); const [title, setTitle] = useState(""); const [contents, setContents] = useState(""); const [나의함수] = useMutation(나의그래프큐엘세팅); const onClickSubmit = async () => { const result = await 나의함수({ variables: { writer: writer, // writer state 를 넣음 title: title, // t..