Skip to content

Instantly share code, notes, and snippets.

@Akifcan
Created December 19, 2021 17:25
Show Gist options
  • Save Akifcan/3973a2459e3a2139a9936b443d8f4ca8 to your computer and use it in GitHub Desktop.
Save Akifcan/3973a2459e3a2139a9936b443d8f4ca8 to your computer and use it in GitHub Desktop.
Uri url = Uri.parse('http://localhost:3000/graphql');
var response = await http.post(
url,
headers: {
"Content-Type": "application/json",
"Accept": "application/json",
},
body: jsonEncode({"query": query, "variables": variables}),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment