Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump github.com/hasura/go-graphql-client from 0.6.3 to 0.8.1 #242

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 29, 2022

Bumps github.com/hasura/go-graphql-client from 0.6.3 to 0.8.1.

Release notes

Sourced from github.com/hasura/go-graphql-client's releases.

v0.8.1

v0.8.0

Highlight

Introduce ExecRaw method that returns a raw json message.

query := `query{something(where: { foo: { _eq: "bar" }}){id}}`
var res struct {
	Somethings []Something `json:"something"`
}
raw, err := client.ExecRaw(ctx, query, map[string]any{})
if err != nil {
panic(err)
}
err = json.Unmarshal(raw, &res)

Breaking change: currently QueryRaw, MutateRaw and Subscribe methods return *json.RawMessage. This output type is redundant to be decoded. The output type should be changed to []byte.

var subscription struct {
	Me struct {
		Name graphql.String
	}
}
subscriptionId, err := client.Subscribe(&query, nil, func(dataValue []byte, errValue error) error {
if errValue != nil {
// handle error
// if returns error, it will failback to onError event
return nil
}
data := query{}
err := json.Unmarshal(dataValue, &data)
fmt.Println(query.Me.Name)
// Output: Luke Skywalker
return nil

})
if err != nil {
// Handle error.
}
</tr></table>

... (truncated)

Commits
  • 835e565 fix: Fixes panic if no connection (#47)
  • d2a5549 Support native go types for graphql operations. (#45)
  • 93707b1 add ExecRaw and change the output type of Raw methods (#44)
  • d9ce49d Propagate errors instead of panic (#41)
  • 7e9cc29 fix subscription hanging on error and add a stop subscription option inside t...
  • fd4ee75 add more examples and subscription tests (#37)
  • 391115f add subscription Exec alias for pre-built query (#35)
  • d4051ab docs: update README for v0.7.0 features (#34)
  • 413dfb6 Allow specifying GraphQL type for a particular type (#33)
  • 3d809b3 added method to execute queries already pre-built (#32)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/hasura/go-graphql-client](https://github.com/hasura/go-graphql-client) from 0.6.3 to 0.8.1.
- [Release notes](https://github.com/hasura/go-graphql-client/releases)
- [Commits](hasura/go-graphql-client@v0.6.3...v0.8.1)

---
updated-dependencies:
- dependency-name: github.com/hasura/go-graphql-client
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@coveralls
Copy link

Coverage Status

Coverage remained the same at 77.52% when pulling e9e69c7 on dependabot/go_modules/github.com/hasura/go-graphql-client-0.8.1 into 523308b on master.

@mefellows mefellows merged commit ac3e483 into master Sep 29, 2022
@mefellows mefellows deleted the dependabot/go_modules/github.com/hasura/go-graphql-client-0.8.1 branch September 29, 2022 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants