skip to Main Content

Reactjs – Call graphql query from form submit

I have a simple react app like const [shoe, setShoe] = useState('') formSubmit = () => { e.preventDefault() const { data } = useQuery<GetShoeDetailsQuery,GetShoeDetailsQueryVariables>(getShoeDetailsQuery, { variables: { name: String(shoe), }, }) console.log(data) } <form onSubmit={formSubmit}> <input type="text" onChange: (e: {…

VIEW QUESTION

GraphQL and Bloc in Flutter

So im trying to implement graphql in flutter, using bloc too. I think i already did all the necessary part, but when i try to hit the graphql, it return response like this HttpLinkParserException (ResponseFormatException(originalException: FormatException: Unexpected character (at character…

VIEW QUESTION
Back To Top
Search