octokit.graphql.net
octokit.graphql.net copied to clipboard
A GitHub GraphQL client library for .NET
Related to: https://github.com/github/VisualStudio/issues/2095 Related to: https://github.com/github/VisualStudio/pull/2108
### What this PR does Allow the caching of compiled queries without any explicit caching or argument passing. ### An example Currently a developer might write their compiled query like...
Capturing the error in #115 in a unit test...
We're currently passing arguments using standard C# parameters, but this has a couple of problems: 1. Since #166, the arguments are now sorted by name. This means if an argument...
The [contributing guide](https://github.com/octokit/octokit.graphql.net/blob/master/docs/contributing.md#running-integration-tests) should specify what OAuth token permissions are required for the integration tests to all run and pass. I generated a new token to use for the integration...
### Incorrect form ```cs var expression = new Query() .Select(q => new { repo1 = q.Repository("foo", "bar").Name.Single(), repo2 = q.Repository("foo", "bar").Name.Single() }); ``` results in: ``` query { repository(owner: "foo",...
We are allowing #127, but we need to give more thought to properly handling preview headers. This is not the first and won't be the last
In various places such as [here](https://github.com/octokit/octokit.graphql.net/blob/12f599213b102d6a4d2d74fdf53b580b343cc327/Octokit.GraphQL.Core/Connection.cs#L17) we've applied the `/// ` XML documentation tag to constructors. This makes no sense, constructors don't implement interface or abstract members so don't have...
For example, the following: ```cs var query = from x in new Query().Repository(owner: "grokys", name: "PullRequestSandbox") select new { x.Name, x.Description, ForkedFrom = x.Parent.NameWithOwner }; var result = await Connection.Run(query);...
Trying to use auto-paging in the select part of a mutation fails: ``` var mutation = new Mutation() .AddPullRequestReview(addReview) .Select(review => new PullRequestReviewModel { Id = review.PullRequestReview.Id.Value, Body = body,...