Taking a fully functioning Google Books API search engine built with a RESTful API, and refactor it to be a GraphQL API built with Apollo Server. The app was built using the MERN stack, with a React front end, MongoDB database, and Node.js/Express.js server and API.
I think it's similar to login. commented out the api related codes, added in useMutation and ADD_USER mutation, create the hook and then change the handleformSubmit function to work with graphql instead.
I think it's similar to login. commented out the api related codes, added in useMutation and ADD_USER mutation, create the hook and then change the handleformSubmit function to work with graphql instead.