react-express-graphql
v1.0.3
Published
 |  |  {
_id
}
`
// Make a request for a query
let baseurl="http://localhost:7002/graphql"
// Store the response
const response = await query(baseurl, querystring);
Example for Mutation
import { mutation } from "react-express-graphql"
// Define the mutation
let mutationstring= `
createCategory(categoryInput: $CategoryInput) {
_id
email,
}
`
// Make a request for a query
let baseurl="http://localhost:7002/graphql"
const response = await mutation(baseurl, mutationstring);
