Created
December 19, 2021 17:25
-
-
Save Akifcan/3973a2459e3a2139a9936b443d8f4ca8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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