Dmitri Shuralyov
Dmitri Shuralyov
> I'm running GHE 2.20.7 You should use the Versions dropdown to select documentation for that version: It'll take you to: https://developer.github.com/enterprise/2.20/v4/object/pullrequest/#isdraft It's documented for that version that it's currently...
Another use case is for detecting when a rate limit is hit. According to https://github.com/shurcooL/githubv4/issues/57#issue-569538004, GitHub returns HTTP 429 status code in those cases.
There's a really good way analogy I can think of that shows how silly it is to have these types. Imagine if the `encoding/json` package defined types such as: ```Go...
That said, we don't want to remove all scalar types. Only those that are easily replaceable by built in Go types. For example, we'll remove `githubql.DateTime`, because `time.Time` can be...
I tried implementing this, and quickly found out that removing the primitive scalar types isn't viable. There are two directions to consider when it comes to interacting with a GraphQL...
@gcrevell You can use a [conversion](https://golang.org/ref/spec#Conversions), e.g.: ```Go var s1 githubql.String var s2 string s2 = string(s1) // type conversion ``` If `string` is what you want, you can just...
@davidkarlsen Something like this should work: ```Go variables := map[string]interface{}{ "somekey": (*githubv4.String)(nil), // or another concrete type instead of String // ... } ```
Also see past discussion in shurcooL/graphql#9.
@mwilli31 You need to explicitly specify the GraphQL type for variables, like so: ```Go variables := map[string]interface{}{ "type": githubql.String("TestType"), "description": githubql.String("Test Description"), } ``` This is now mentioned in the...
Thanks for the suggestion/feature request. That makes sense. `encoding/json` sets a good precedent for this with its `json:"-"`. I'll think about this a bit, and most likely go with `graphql:"-"`...