Skip to content

younisshah/turk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

turk

A super simple GraphQL client. Retries if your GraphQL server isn't responding with exponential jitter backoff strategy.

Sample Usage:

   email := "g@mail.com"
   password := "startww3now"
   gql := turk.GraphQL{
   	Statement: `query CustomerLoginQuery {
   				customerLogin(Email: {Email}, Password: {Password}){
   					Avatar
   					FirstName
   					LastName
   					Phone
   					id
   					Response
   				}
   			}`,
   	Parameters: turk.Props{"Email": email, "Password": password},
   }.Build()

   resp, err := turk.NewTurkClient("http://localhost:8080/gql", &gql).Send()

About

A super simple GraphQL client

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages