Пример #1
0
        protected override async void OnAppearing()
        {
            base.OnAppearing();

            var graphQuery = "query{ user(login: marcofolio){    name    bio    company    location    followers(first: 10)    {      nodes      {        id        name      }    }  } }";
            var user       = await _graphQLService.Query <User>("https://api.github.com/graphql", graphQuery);

            Name.Text             = user.name;
            Bio.Text              = user.bio.ToString();
            Followers.ItemsSource = user.followers.nodes.Where(u => !string.IsNullOrEmpty(u.name)).Select(u => u.name);
        }