Graphene
Simple GraphQL Client. Hecho en 🇵🇷 por Radamés J. Valentín Reyes.
Documentation
Create a GraphQL Query
test-1.graphql
query GetAllFilms{
allFilms {
films {
title
}
}
}
Make a Request to the server
operationName and variables are optional parameters.
String query = await File("./graphql-queries/test-1.graphql").readAsString();
Map<String,dynamic> response = await graphene.request(
url: "https://swapi-graphql.netlify.app/.netlify/functions/index",
graphQlQuery: query,
);
print(response);
Contribute/donate by tapping on the Pay Pal logo/image
References
- https://web.postman.co/workspace/My-Workspace~3e8578a2-bc54-4322-8521-799a660a88da/request/34535274-476631d6-8ca9-4efb-9a47-3a155bbb8906?tab=headers
- https://www.apollographql.com/blog/8-free-to-use-graphql-apis-for-your-projects-and-demos
- https://www.apollographql.com/blog/making-graphql-requests-using-http-methods
- https://graphql.org/
- https://codedamn.com/learn/graphql-for-beginners