Skip to content

carlflor/unity_graphql_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

GraphQL Client for Unity using UnityWebRequest

Here is a sample client I made for a Unity app that utilizes a GraphQL api. I based my code on these sources:

Sample call

public class SomeGameObject : MonoBehaviour {

  public APIClient api;

  void Start () {
    StartCoroutine (api.QueryCall( (bool success) => {
        if (success)
          Debug.Log( "success!");
        else
          Debug.Log( "fail!");
    }))
  }
}

For any clarification or comment, feel free to get in touch with me! :)

Releases

No releases published

Packages

No packages published

Languages