Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 674 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 674 Bytes

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! :)